New scripts v2

This commit is contained in:
Nicolas A. Tonne
2014-10-24 11:35:44 +02:00
parent 35cb514b37
commit a2fa3022cc
2 changed files with 8 additions and 7 deletions

7
getnew.sh Executable file
View File

@@ -0,0 +1,7 @@
cd /var/www
if ! git --git-dir=".git" diff --quiet
then
git pull
./setperms.sh
fi

View File

@@ -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'