From 5ac49169c79806db8e02a2aa9c42c21c9d1198a5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sass=20B=C3=A1lint?= Date: Tue, 21 Nov 2017 15:20:23 +0100 Subject: [PATCH] existence of $(HTMLROOT) and $(CGIROOT) checked on $(HOST) --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 4387583..a7b06f8 100644 --- a/Makefile +++ b/Makefile @@ -69,6 +69,7 @@ MAINNAME=mazsola2 # # html és cgi # root -- IN ANY CASE, THESE MUST EXIST ON $(HOST)! +# otherwise 'make deploy-no-db' will fail HTMLROOT=/var/www CGIROOT=/var/www/cgi-bin # @@ -133,7 +134,7 @@ deploy-no-db: html langs @echo @echo " Please provide password for sudo on $(HOST):" @echo - ssh -t $(HOST) "sudo -- sh -c 'mkdir $(HTMLDIR) ; chown root.$(YOURGROUPONHOST) $(HTMLDIR) ; chmod g+ws $(HTMLDIR) ; mkdir $(CGIDIR) ; chown root.$(YOURGROUPONHOST) $(CGIDIR) ; chmod g+ws $(CGIDIR)' ; mkdir -p $(HTMLSECRETDIR) ; mkdir -p $(CGITMPDIR) ; mkdir -p $(CGILOGDIR) ; sudo -- sh -c 'chgrp $(HOSTWEBSERVERUSER) $(CGITMPDIR) $(CGILOGDIR) ; chmod g+w $(CGITMPDIR) $(CGILOGDIR)'" + ssh -t $(HOST) "sudo -- sh -c 'mkdir $(HTMLDIR) ; chown root.$(YOURGROUPONHOST) $(HTMLDIR) ; chmod g+ws $(HTMLDIR) ; mkdir $(CGIDIR) ; chown root.$(YOURGROUPONHOST) $(CGIDIR) ; chmod g+ws $(CGIDIR)' ; mkdir $(HTMLSECRETDIR) ; mkdir $(CGITMPDIR) ; mkdir $(CGILOGDIR) ; sudo -- sh -c 'chgrp $(HOSTWEBSERVERUSER) $(CGITMPDIR) $(CGILOGDIR) ; chmod g+w $(CGITMPDIR) $(CGILOGDIR)'" # scp mazsola.jpg ny.png $(HOSTHTMLDIR) scp nyitolap_hun.html $(HOSTHTMLDIR)/index.html