]> git.phdru.name Git - phdru.name/phdru.name.git/blobdiff - update-all
Refactor update script
[phdru.name/phdru.name.git] / update-all
index 67c24cd5f581619e1b1e9330a3212dfc88e14929..4aa0189bb1dbc7b679aecfe92539daf8d1140c4a 100755 (executable)
@@ -1,11 +1,4 @@
 #! /bin/sh
 
-cd ../htdocs && \
-
-ssh phdppru@phd.pp.ru "cd public_html && exec mv .htaccess awstats cgi-bin ../tmp" && \
-distribute -r public_html/ -d phd.pp.ru/ && \
-ssh phdppru@phd.pp.ru "cd tmp && exec mv .htaccess awstats cgi-bin ../public_html" && \
-
-ssh iskra-aviel.phd.pp.ru sitecopy -u fatal.ru by.ru && \
-cd "$HOME" && rsync -avPz iskra-aviel.phd.pp.ru:.sitecopy . && \
-exec distribute .sitecopy
+cd "`dirname \"$0\"`"/.. && distribute -ad phdru.name
+cd htdocs && exec distribute -ad phdru.name