self-hosting/scripts/rsync-and-run.sh

5 lines
203 B
Bash
Raw Normal View History

2018-07-22 23:10:38 +02:00
#!/bin/bash
DIRECTORY=`dirname $0`
cd DIRECTORY/..
2018-07-23 00:46:10 +02:00
rsync -avzhe ssh --delete --exclude=.* ./ deploy@ansible.banditlair.com:/home/deploy/ansible && ssh -t deploy@ansible.banditlair.com "cd ansible && $1"