From 28a17674f742536f9dd0ff727216f011936e36a9 Mon Sep 17 00:00:00 2001 From: Owen Date: Sun, 22 Dec 2024 21:32:17 +0100 Subject: [PATCH] sleep between scripts --- .github/workflows/production.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/production.yml b/.github/workflows/production.yml index 6b56475..b0d4307 100644 --- a/.github/workflows/production.yml +++ b/.github/workflows/production.yml @@ -67,9 +67,10 @@ jobs: script: | cd /home/${{ secrets.USERNAME }}/plantid_discord_bot tar -xzf release.tar.gz - ./current_release/bin/plantid_discord_bot stop || true + current_release/bin/plantid_discord_bot stop || true + sleep 5 rm -rf old_release mv current_release old_release || true mv plantid_discord_bot current_release - ./current_release/bin/plantid_discord_bot daemon + current_release/bin/plantid_discord_bot daemon rm -f release.tar.gz