retain badgey user, set exec perms on delivered binary
This commit is contained in:
parent
9f363180bf
commit
2001c61b17
|
|
@ -4,8 +4,9 @@ bot=$(echo "$1" | tr '[:upper:]' '[:lower:]')
|
||||||
|
|
||||||
echo "Running deploy for bot ${bot}"
|
echo "Running deploy for bot ${bot}"
|
||||||
|
|
||||||
ssh $bot@$bot sudo /usr/bin/systemctl stop $bot
|
ssh badgey@$bot sudo /usr/bin/systemctl stop $bot
|
||||||
rsync -avP badgey $bot@$bot:/srv/$bot/
|
rsync -avP badgey badgey@$bot:/srv/$bot/$bot
|
||||||
rsync -avP config $bot@$bot:/srv/$bot/
|
rsync -avP config badgey@$bot:/srv/$bot/
|
||||||
rsync -avP txt $bot@$bot:/srv/$bot/
|
rsync -avP txt badgey@$bot:/srv/$bot/
|
||||||
ssh $bot@$bot sudo /usr/bin/systemctl start $bot
|
ssh badgey@$bot sudo chmod a+x /srv/$bot/$bot
|
||||||
|
ssh badgey@$bot sudo /usr/bin/systemctl start $bot
|
||||||
Loading…
Reference in New Issue