1
Fork 0
mirror of https://github.com/RGBCube/Site synced 2025-07-30 20:47:46 +00:00

apply: fix script

This commit is contained in:
RGBCube 2025-05-29 01:38:18 +03:00
parent 7974d7a806
commit e65991c1c9
Signed by: RGBCube
SSH key fingerprint: SHA256:CzqbPcfwt+GxFYNnFVCqoN5Itn4YFrshg1TrnACpA5M

View file

@ -2,7 +2,6 @@
def --wrapped sync [...arguments] {
(rsync
--rsh "ssh -q"
--compress
--delete --recursive --force
--delete-excluded
@ -27,21 +26,18 @@ def main [] {
cd _site
{
let host = "best";
let host = "root@best";
ssh -qtt $host "sudo nu -c '
mkdir /var/www
chown nginx:users -R /var/www
chmod 775 -R /var/www
'"
sync --chown nginx:users ./ ($host + ":/var/www/site")
ssh -qtt $host "
rm --force --recursive /var/www/site
mkdir /var/www/site
"
sync --chown nginx:users ./ ($host + ":/var/www/site")
ssh -qtt $host "sudo nu -c '
chown nginx:users -R /var/www
chmod 775 -R /var/www
'"
}
ssh -qtt $host "
chown nginx:users -R /var/www
chmod 775 -R /var/www
"
cd -