diff options
author | Martin Miller | 2020-12-10 18:17:07 -0600 |
---|---|---|
committer | Martin Miller | 2020-12-10 18:17:07 -0600 |
commit | 015b9cb1b2f808624ae693327090aa8514438226 (patch) | |
tree | 7a4ab4557fb2e196c2b6b19743dae526d4f9d3bd /docker/tbp/visitlog/Makefile | |
download | tbp-master.zip tbp-master.tar.gz |
Diffstat (limited to 'docker/tbp/visitlog/Makefile')
-rw-r--r-- | docker/tbp/visitlog/Makefile | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/docker/tbp/visitlog/Makefile b/docker/tbp/visitlog/Makefile new file mode 100644 index 0000000..cca34cd --- /dev/null +++ b/docker/tbp/visitlog/Makefile @@ -0,0 +1,30 @@ +INSTALLDIR = /usr/lib/cgi-bin +CSSDIR = /home/marty/public_html +LOGDIR = /var/www/visitlog +FIRSTTIME = firsttime.txt +PAGE = visitlog.sh +VISITS = visits.csv +MEMBERS = members.csv +WWWUSER = www-data +WWWGROUP = www-data + +.PHONY install: +install: + touch $(LOGDIR)/$(VISITS) + touch $(LOGDIR)/$(FIRSTTIME) + cp $(MEMBERS) $(LOGDIR) + cp $(PAGE) $(INSTALLDIR) + cp style.css $(CSSDIR) + chmod 400 $(CSSDIR)/style.css + chmod 400 $(LOGDIR)/$(MEMBERS) + chmod 600 $(LOGDIR)/$(VISITS) + chmod 600 $(LOGDIR)/$(FIRSTTIME) + chmod 500 $(INSTALLDIR)/$(PAGE) + chown $(WWWUSER).$(WWWGROUP) $(LOGDIR)/$(MEMBERS) + chown $(WWWUSER).$(WWWGROUP) $(LOGDIR)/$(VISITS) + chown $(WWWUSER).$(WWWGROUP) $(LOGDIR)/$(FIRSTTIME) + chown $(WWWUSER).$(WWWGROUP) $(INSTALLDIR)/$(PAGE) + chown $(WWWUSER).$(WWWGROUP) $(CSSDIR)/style.css + +.PHONY clean: +clean: |