summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorrsiddharth <s@ricketyspace.net>2019-11-09 13:58:31 -0500
committerrsiddharth <s@ricketyspace.net>2019-11-09 14:00:19 -0500
commitd48960a30ac69b5ed65b00784199be24cbb37ce4 (patch)
tree7c7fc3405b0c8e99a5cdb588f6ecf1a7d0059206 /Makefile
parent989ac4f537733a9770c7483c45e19e18f7f2906e (diff)
Makefile: Update rcd.
Copy over the nfsw.ini file and set it's permission to 444.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 4da0c18..e789554 100644
--- a/Makefile
+++ b/Makefile
@@ -12,6 +12,7 @@ VENV_CMD=virtualenv-3
JSHINT=~/.npm-packages/bin/jshint
PRD_HOST=cygnus
PRD_WHEEL=nfsw-0.1.0.dev1-py3-none-any.whl
+UWSGI_INI=etc/uwsgi/nfsw.ini
RC_D=etc/rc.d/nfsw
dunno:
@@ -86,8 +87,11 @@ prd-uninstall:
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}
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}
.PHONY: rcd