summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile14
1 files changed, 14 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index dadfcf2..8df4b95 100644
--- a/Makefile
+++ b/Makefile
@@ -21,6 +21,10 @@ RC_D=etc/rc.d/nfsw
SSH_PUB=ssh/lyra.pub
+TB=bin/tball
+TB_CNF=etc/tball
+CRON=cron/root
+
dunno:
@echo "Give me somepin to make"
@@ -146,6 +150,16 @@ prd-sk:
ssh root@${PRD_HOST} cat ~/.ssh/${SSH_PUB} >> ~/.authorized_keys
.PHONY: prd-sk
+prd-tb:
+ rsync -a ${TB} root@${PRD_HOST}:/usr/local/bin/tball
+ rsync -a ${TB_CNF} root@${PRD_HOST}:/${TB_CNF}
+ rsync -a ${CRON} root@${PRD_HOST}:~/.cron
+ ssh root@${PRD_HOST} \\"mkdir -p \
+ /var/backups/nfsw/instance \
+ && crontab ~/.cron \
+ && git -C /etc add tball\\"
+.PHONY: prd-tb
+
clean:
rm -rf build/ dist/ nfsw.egg-info/
find ./ -type d -name '__pycache__' -exec rm -rf {} +