rename user, group and service
All checks were successful
ci/woodpecker/push/build-and-deploy Pipeline was successful
All checks were successful
ci/woodpecker/push/build-and-deploy Pipeline was successful
This commit is contained in:
parent
3ec5520936
commit
2847291391
1 changed files with 2 additions and 2 deletions
|
@ -18,7 +18,7 @@ scp -r oxaliq "$host":~/
|
||||||
# TODO make this not remove the old-working version until
|
# TODO make this not remove the old-working version until
|
||||||
# the new version is confirmed working
|
# the new version is confirmed working
|
||||||
echo "SETTING OWNERSHIP AND PERMISSIONS"
|
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/'
|
ssh $host 'sudo chmod -R 755 oxaliq/'
|
||||||
|
|
||||||
echo "REPLACING PREVIOUS DEPLOYMENT"
|
echo "REPLACING PREVIOUS DEPLOYMENT"
|
||||||
|
@ -26,7 +26,7 @@ ssh $host 'sudo rm -rf /srv/oxaliq || true'
|
||||||
ssh $host 'sudo mv oxaliq /srv/.'
|
ssh $host 'sudo mv oxaliq /srv/.'
|
||||||
|
|
||||||
echo "RESTARTING SERVICE"
|
echo "RESTARTING SERVICE"
|
||||||
ssh $host 'sudo systemctl restart sorreldotdev.service'
|
ssh $host 'sudo systemctl restart oxaliqdotnet.service'
|
||||||
|
|
||||||
echo "SUCCESS!"
|
echo "SUCCESS!"
|
||||||
exit 0
|
exit 0
|
||||||
|
|
Loading…
Reference in a new issue