X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=update-all;h=e55aa84ccf3e958491e0fd1694b6336b5aa4c246;hb=HEAD;hp=31b39d5195ebe675e38150ff398de788b2763b7b;hpb=42465be8abac2fdb32c939bc7e5ad0fbca5df2f8;p=phdru.name%2Fphdru.name.git diff --git a/update-all b/update-all index 31b39d5..e55aa84 100755 --- a/update-all +++ b/update-all @@ -1,11 +1,10 @@ #! /bin/sh -cd ../htdocs && \ +git diff --quiet web/master master || +git push web master || exit 1 -ssh -4 phdppru@phdru.name 'cd public_html && exec mv .htaccess awstats cgi-bin "$HOME"/tmp' && \ -distribute -r public_html/ -d phdru.name/ && \ -ssh -4 phdppru@phdru.name "cd tmp && exec mv .htaccess awstats cgi-bin ../public_html" && \ +cd "`dirname \"$0\"`"/.. && +distribute -aD phdru.name && -ssh -4 iskra-aviel.phdru.name sitecopy -u fatal.ru by.ru && \ -cd "$HOME" && rsync -avPz iskra-aviel.phdru.name:.sitecopy . && \ -exec distribute .sitecopy +cd htdocs && +exec distribute -aD git.phdru.name phdru.name