diff --git a/deploy.sh b/deploy.sh old mode 100644 new mode 100755 index 70d37d8..3d8de6d --- a/deploy.sh +++ b/deploy.sh @@ -3,5 +3,5 @@ # It will upload all files not ignored by git files_not_ignored="$(git status --short | grep ^? | cut -d\ -f2- ; git ls-files)" -scp -r $files_not_ignored root@brzeczyszczykiewicz.pvv.ntnu.no:~grzegorz/grzegorz -ssh root@brzeczyszczykiewicz.pvv.ntnu.no systemctl restart grzegorz \ No newline at end of file +tar -c $files_not_ignored | ssh grzegorz@brzeczyszczykiewicz.pvv.ntnu.no tar -xC ~grzegorz/grzegorz +ssh root@brzeczyszczykiewicz.pvv.ntnu.no "systemctl restart grzegorz"