retain badgey user, set exec perms on delivered binary
Badgey Deployment / build (push) Successful in 6m6s Details
Badgey Deployment / deploy (BADGEY) (push) Successful in 6s Details
Badgey Deployment / deploy (M5_COMPUTER) (push) Failing after 7s Details

This commit is contained in:
Xyon 2024-10-12 16:30:18 +01:00
parent 9f363180bf
commit 2001c61b17
Signed by: xyon
GPG Key ID: DD18155D6B18078D
1 changed files with 6 additions and 5 deletions

View File

@ -4,8 +4,9 @@ bot=$(echo "$1" | tr '[:upper:]' '[:lower:]')
echo "Running deploy for bot ${bot}"
ssh $bot@$bot sudo /usr/bin/systemctl stop $bot
rsync -avP badgey $bot@$bot:/srv/$bot/
rsync -avP config $bot@$bot:/srv/$bot/
rsync -avP txt $bot@$bot:/srv/$bot/
ssh $bot@$bot sudo /usr/bin/systemctl start $bot
ssh badgey@$bot sudo /usr/bin/systemctl stop $bot
rsync -avP badgey badgey@$bot:/srv/$bot/$bot
rsync -avP config badgey@$bot:/srv/$bot/
rsync -avP txt badgey@$bot:/srv/$bot/
ssh badgey@$bot sudo chmod a+x /srv/$bot/$bot
ssh badgey@$bot sudo /usr/bin/systemctl start $bot