]> git.phdru.name Git - phdru.name/phdru.name.git/blobdiff - update-all
Feat(blog): Encode tags
[phdru.name/phdru.name.git] / update-all
index 49441cd35cb4f1a9782d8ec60353d9c2e86951a9..e55aa84ccf3e958491e0fd1694b6336b5aa4c246 100755 (executable)
@@ -1,11 +1,10 @@
 #! /bin/sh
 
-cd ../htdocs/phdru.name &&
+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 -d public_html &&
-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 &&
-cd "$HOME" && rsync -aPz4 iskra-aviel.phdru.name:.sitecopy . &&
-exec distribute .sitecopy
+cd htdocs &&
+exec distribute -aD git.phdru.name phdru.name