diff --git a/cicd/deploy.sh b/cicd/deploy.sh index 3e2098d..2aa4035 100755 --- a/cicd/deploy.sh +++ b/cicd/deploy.sh @@ -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 \ No newline at end of file +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 \ No newline at end of file