updated paths in ./deploy

This commit is contained in:
Sebastian Moser
2024-11-22 23:55:47 +01:00
parent 7033cc7e3b
commit 58e5fc9daf

4
deploy
View File

@@ -17,7 +17,7 @@ then
#scp -r acern:$path/* ocih:host/webserver/webfiles #scp -r acern:$path/* ocih:host/webserver/webfiles
tmp=$(mktemp -d) tmp=$(mktemp -d)
[[ "$path" != "" ]] && rsync -rv -p --chmod=u+w acern:$path/* $tmp [[ "$path" != "" ]] && rsync -rv -p --chmod=u+w acern:$path/* $tmp
[[ "$path" != "" ]] && rsync -rv $tmp/* ocih:host/webserver/webfiles/ --rsync-path="sudo rsync" [[ "$path" != "" ]] && rsync -rv $tmp/* ocih:host/data/my-website --rsync-path="sudo rsync"
@@ -37,7 +37,7 @@ else
echo path: $path echo path: $path
#scp -r $path/* ocih:host/webserver/webfiles #scp -r $path/* ocih:host/webserver/webfiles
[[ "$path" != "" ]] && rsync -rv $path/* ocih:host/webserver/webfiles --rsync-path="sudo rsync" [[ "$path" != "" ]] && rsync -rv $path/* ocih:host/data/my-website --rsync-path="sudo rsync"
fi fi