From a8a3bcdb83f558af4222650a6f2861b19ea339ad Mon Sep 17 00:00:00 2001 From: Franziska Kunsmann Date: Sat, 4 Apr 2020 18:10:37 +0200 Subject: [PATCH] bundles/mx-puppet-discord: remove registration.yaml before generating new one --- bundles/mx-puppet-discord/items.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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',