mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
New scripts v2
This commit is contained in:
7
getnew.sh
Executable file
7
getnew.sh
Executable file
@@ -0,0 +1,7 @@
|
|||||||
|
cd /var/www
|
||||||
|
if ! git --git-dir=".git" diff --quiet
|
||||||
|
then
|
||||||
|
git pull
|
||||||
|
./setperms.sh
|
||||||
|
fi
|
||||||
|
|
||||||
@@ -1,7 +1 @@
|
|||||||
cd /var/www
|
ssh root@zoff.no '/var/www/getnew.sh'
|
||||||
if ! git --git-dir=".git" diff --quiet
|
|
||||||
then
|
|
||||||
git pull
|
|
||||||
./setperms.sh
|
|
||||||
fi
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user