Retaining badgey user for simplicity

This commit is contained in:
Xyon 2024-10-08 00:08:44 +01:00
parent 9264ebd5de
commit d53b613044
Signed by: xyon
GPG Key ID: DD18155D6B18078D
1 changed files with 5 additions and 5 deletions

View File

@ -2,8 +2,8 @@
bot=$(echo "$1" | tr '[:upper:]' '[:lower:]') bot=$(echo "$1" | tr '[:upper:]' '[:lower:]')
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/
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 /usr/bin/systemctl start $bot