Permalink
Browse files

now uses sudo instead of ssh as root

  • Loading branch information...
1 parent 75a5973 commit 4ea32b9d3b6de059369cdae983f3ec63285dca78 @AndreCharbonneau AndreCharbonneau committed Apr 11, 2013
Showing with 4 additions and 5 deletions.
  1. +4 −5 Makefile
View
9 Makefile
@@ -9,11 +9,10 @@ deploy:
cp -r wsgi/* $(RPI_WEB_WSGI)
deploy-remote:
- ssh root@$(RPI_WEB_HOST) "mkdir -p $(RPI_WEB_WSGI)"
- rsync -avz -e ssh --delete --exclude '.git' --exclude '.rope*' --exclude '*~' --delete-excluded wsgi/ root@$(RPI_WEB_HOST):$(RPI_WEB_WSGI)
- ssh root@$(RPI_WEB_HOST) "service httpd reload"
+ ssh $(RPI_WEB_HOST) "sudo mkdir -p $(RPI_WEB_WSGI)"
+ rsync -avz -e ssh --delete --exclude '.git' --exclude '.rope*' --exclude '*~' --delete-excluded wsgi/ $(RPI_WEB_HOST):$(RPI_WEB_WSGI)
+ ssh $(RPI_WEB_HOST) "sudo service httpd reload"
deploy-cs-infoserver:
- ssh andrec@condor.heprc.uvic.ca "mkdir -p ~/bin"
- scp xmlrpc/rpiinfoservers/cloudscheduler_infoserver.py andrec@condor.heprc.uvic.ca:bin/
+ scp xmlrpc/rpiinfoservers/cloudscheduler_infoserver.py $(CS_INFO_SERVER):bin/

0 comments on commit 4ea32b9

Please sign in to comment.