From 35cb514b379bae31b8383489ad023f89d9fa0d4f Mon Sep 17 00:00:00 2001 From: "Nicolas A. Tonne" Date: Fri, 24 Oct 2014 11:18:46 +0200 Subject: [PATCH] update lists --- prodsett.sh | 8 +++++++- setperms.sh | 3 ++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/prodsett.sh b/prodsett.sh index b2f9deef..a7c7e00c 100755 --- a/prodsett.sh +++ b/prodsett.sh @@ -1 +1,7 @@ -git ftp push -u u6917557 -p - ftp://zoff.no/www \ No newline at end of file +cd /var/www +if ! git --git-dir=".git" diff --quiet +then + git pull + ./setperms.sh +fi + diff --git a/setperms.sh b/setperms.sh index d61d86da..71747001 100755 --- a/setperms.sh +++ b/setperms.sh @@ -1 +1,2 @@ -sudo chmod -R ugo+rwx . \ No newline at end of file +sudo chmod -R ugo+rwx /var/www +