aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile8
1 files changed, 4 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 52d12ed..d08f116 100644
--- a/Makefile
+++ b/Makefile
@@ -17,12 +17,12 @@ install-www: build-stamp
@[ $(shell hostname -A | cut -d\ -f1) = $(REPOHOST) ] \
|| ( echo "Operation aborted: not on $(REPOHOST)" ; \
false )
- mkdir -p $(WWWDIR)
- chown -R '$(USER):$(USER)' $(WWWDIR)
+ sudo mkdir -p $(WWWDIR)
+ sudo chown -R '$(USER):$(USER)' $(WWWDIR)
install --mode=644 www/$(INDEX) www/$(GPGKEY) $(WWWDIR)
install --mode=644 apache/praat.conf $(APACHEDIR)
- a2ensite praat
- service apache2 restart
+ sudo a2ensite praat
+ sudo service apache2 restart
%: %.in
sed -e 's|@WWWHOST@|$(WWWHOST)|;s|@WWWDIR@|$(WWWDIR)|;s|@INDEX@|$(INDEX)|;s|@GPGKEY@|$(GPGKEY)|' $< > $@