bundles/mx-puppet-discord: remove registration.yaml before generating new one

This commit is contained in:
Franzi 2020-04-04 18:10:37 +02:00
parent 5910d825c0
commit a8a3bcdb83
Signed by: kunsi
GPG key ID: 12E3D2136B818350

View file

@ -58,7 +58,7 @@ actions = {
'triggered': True, 'triggered': True,
}, },
'mx-puppet-discord_generate_registration': { 'mx-puppet-discord_generate_registration': {
'command': 'cd /opt/mx-puppet-discord && sudo -u mx-puppet-discord node ./build/index.js -r -c /opt/mx-puppet-discord/config.yaml -f /opt/mx-puppet-discord/registration.yaml', 'command': 'cd /opt/mx-puppet-discord && $(rm /opt/mx-puppet-discord/registration.yaml || true) && sudo -u mx-puppet-discord node ./build/index.js -r -c /opt/mx-puppet-discord/config.yaml -f /opt/mx-puppet-discord/registration.yaml',
'needs': { 'needs': {
'user:mx-puppet-discord', 'user:mx-puppet-discord',
'action:mx-puppet-discord_npm_build', 'action:mx-puppet-discord_npm_build',