diff --git a/getnew.sh b/getnew.sh new file mode 100755 index 00000000..a7c7e00c --- /dev/null +++ b/getnew.sh @@ -0,0 +1,7 @@ +cd /var/www +if ! git --git-dir=".git" diff --quiet +then + git pull + ./setperms.sh +fi + diff --git a/prodsett.sh b/prodsett.sh index a7c7e00c..42103362 100755 --- a/prodsett.sh +++ b/prodsett.sh @@ -1,7 +1 @@ -cd /var/www -if ! git --git-dir=".git" diff --quiet -then - git pull - ./setperms.sh -fi - +ssh root@zoff.no '/var/www/getnew.sh'