gotta sudo to restart a service
ci/woodpecker/push/woodpecker Pipeline was successful Details

This commit is contained in:
Landon Dyck 2022-01-15 23:27:56 -06:00
parent 731cceef05
commit 3c6695c9d9
1 changed files with 1 additions and 1 deletions

View File

@ -39,4 +39,4 @@ if [ "$SSH_KEY" != "" ] ; then SSH_KEY="-i $SSH_KEY"; fi
for server_address in $@; do :; done
ssh_command="ssh -o StrictHostKeyChecking=no -p $PORT $SSH_KEY"
rsync -pv -e "$ssh_command" -o -g --chown=woodcutter:woodcutter --no-perms ./server $USER@$server_address:/opt/tinyhatchet/
$ssh_command $USER@$server_address 'rc-service tinyhatchet restart'
$ssh_command $USER@$server_address 'sudo rc-service tinyhatchet restart'