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 +