Fix debian 10 deployment
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/promote/production Build is passing

This commit is contained in:
Adam Štrauch 2023-07-01 00:02:01 +02:00
parent 494e31c4b1
commit 0b5ded2abf
Signed by: cx
GPG key ID: 018304FFA8988F8D

View file

@ -132,9 +132,9 @@ steps:
echo "\033[1;33m.. copying the binary\033[0m"
rsync -ave "ssh -J root@$PROXY" node-api root@$NODE:/usr/local/bin/node-api_
echo "\033[1;33m.. replacing the binary\033[0m"
ssh root@$NODE mv /usr/local/bin/node-api_ /usr/local/bin/node-api
ssh -J root@$PROXY root@$NODE mv /usr/local/bin/node-api_ /usr/local/bin/node-api
echo "\033[1;33m.. restarting service\033[0m"
ssh root@$NODE systemctl restart node-api
ssh -J root@$PROXY root@$NODE systemctl restart node-api
done
depends_on: