#! /bin/sh
-cd ../htdocs && distribute -d phd.pp.ru && ssh oper.med.ru bin/sc && \
-cd "$HOME" && rsync -avPz oper.med.ru:.sitecopy . && exec distribute .sitecopy
+
+cd "`dirname \"$0\"`"/.. && distribute -AD phdru.name
+cd htdocs && exec distribute -AD phdru.name