summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrsiddharth <s@ricketyspace.net>2019-11-16 15:42:40 -0500
committerrsiddharth <s@ricketyspace.net>2019-11-16 15:42:40 -0500
commit59773e50642041d67337ad2bc40202b4af8e5b85 (patch)
treed90b6e0cff50491eb686a6b3bf1b587b3246a14e
parent600ace4733b4394265ce0655d4acd787ebf2c7f9 (diff)
Makefile: Use rsync.
Use rsync instead of scp.
-rw-r--r--Makefile12
1 files changed, 6 insertions, 6 deletions
diff --git a/Makefile b/Makefile
index 409ea8e..e837360 100644
--- a/Makefile
+++ b/Makefile
@@ -65,7 +65,7 @@ prd-init:
prd-httpd:
- scp ${HTTPD_CONF} root@${PRD_HOST}:/${HTTPD_CONF}
+ rsync ${HTTPD_CONF} root@${PRD_HOST}:/${HTTPD_CONF}
ssh root@${PRD_HOST} \\"rcctl enable httpd \
&& rcctl restart httpd \\"
@@ -73,7 +73,7 @@ prd-httpd:
prd-acme:
- scp ${ACME_CONF} root@${PRD_HOST}:/${ACME_CONF}
+ rsync ${ACME_CONF} root@${PRD_HOST}:/${ACME_CONF}
.PHONY: prd-acme
@@ -94,7 +94,7 @@ prd-venv:
prd-install:
ssh root@${PRD_HOST} \\"mkdir -p /var/www/nfsw/wheel/\\"
- scp dist/${PRD_WHEEL} \
+ rsync dist/${PRD_WHEEL} \
root@${PRD_HOST}:/var/www/nfsw/wheel/
ssh root@${PRD_HOST} \\". ${VENV_DIR}-prd/bin/activate \
&& pip install /var/www/nfsw/wheel/${PRD_WHEEL} \
@@ -104,7 +104,7 @@ prd-install:
prd-upgrade:
ssh root@${PRD_HOST} \\"mkdir -p /var/www/nfsw/wheel/\\"
- scp dist/${PRD_WHEEL} \
+ rsync dist/${PRD_WHEEL} \
root@${PRD_HOST}:/var/www/nfsw/wheel/
ssh root@${PRD_HOST} \\". ${VENV_DIR}-prd/bin/activate \
&& pip install --upgrade /var/www/nfsw/wheel/${PRD_WHEEL} \
@@ -122,8 +122,8 @@ prd-initdb:
prd-rcd:
ssh root@${PRD_HOST} mkdir -p -m 755 /etc/uwsgi
- scp ${UWSGI_INI} root@${PRD_HOST}:/${UWSGI_INI}
- scp ${RC_D} root@${PRD_HOST}:/${RC_D}
+ rsync ${UWSGI_INI} root@${PRD_HOST}:/${UWSGI_INI}
+ rsync ${RC_D} root@${PRD_HOST}:/${RC_D}
ssh root@${PRD_HOST} chmod 555 /${RC_D}
ssh root@${PRD_HOST} chmod 444 /${UWSGI_INI}
ssh root@${PRD_HOST} chown root:wheel /${RC_D}