rename user, group and service
All checks were successful
ci/woodpecker/push/build-and-deploy Pipeline was successful

This commit is contained in:
sorrel 2024-01-14 21:23:55 -05:00
parent 3ec5520936
commit 2847291391

View file

@ -18,7 +18,7 @@ scp -r oxaliq "$host":~/
# TODO make this not remove the old-working version until
# the new version is confirmed working
echo "SETTING OWNERSHIP AND PERMISSIONS"
ssh $host 'sudo chown -R sorreldotdev:sorreldotdev oxaliq/'
ssh $host 'sudo chown -R oxaliqdotnet:oxaliqdotnet oxaliq/'
ssh $host 'sudo chmod -R 755 oxaliq/'
echo "REPLACING PREVIOUS DEPLOYMENT"
@ -26,7 +26,7 @@ ssh $host 'sudo rm -rf /srv/oxaliq || true'
ssh $host 'sudo mv oxaliq /srv/.'
echo "RESTARTING SERVICE"
ssh $host 'sudo systemctl restart sorreldotdev.service'
ssh $host 'sudo systemctl restart oxaliqdotnet.service'
echo "SUCCESS!"
exit 0