diff --git a/bundles/mx-puppet-discord/items.py b/bundles/mx-puppet-discord/items.py index 8c5d583..6337225 100644 --- a/bundles/mx-puppet-discord/items.py +++ b/bundles/mx-puppet-discord/items.py @@ -58,7 +58,7 @@ actions = { 'triggered': True, }, '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': { 'user:mx-puppet-discord', 'action:mx-puppet-discord_npm_build',