Skip to content

Commit 2094a5d

Browse files
committed
Allow webserver traversal for both webservers
1 parent b7973cb commit 2094a5d

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Makefile

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -261,6 +261,7 @@ inplace-install-l:
261261
@echo " # Also make sure you keep access"
262262
@echo " setfacl -R -m d:u:$(DOMJUDGE_USER):rwx $(CURDIR)/webapp/var"
263263
@echo " setfacl -R -m u:$(DOMJUDGE_USER):rwx $(CURDIR)/webapp/var"
264+
@echo " And manually make sure the webserver has traversal access to: $(CURDIR)"
264265
@echo " - Configure webserver"
265266
@echo " Apache 2:"
266267
@echo " ln -sf $(CURDIR)/etc/apache.conf /etc/apache2/conf-available/domjudge.conf"
@@ -296,6 +297,10 @@ inplace-postinstall-permissions:
296297
chcon -R -t httpd_sys_rw_content_t $(CURDIR)/webapp/public/images; \
297298
chcon -t httpd_exec_t $(CURDIR)/lib/alert; \
298299
fi
300+
while [ `pwd` != "/" ]; do \
301+
setfacl -m u:$(WEBSERVER_GROUP):x .; \
302+
cd ..; \
303+
done
299304

300305
inplace-postinstall-apache: inplace-postinstall-permissions
301306
@if [ ! -d "/etc/apache2/conf-enabled" ]; then echo "Couldn't find directory /etc/apache2/conf-enabled. Is apache installed?"; false; fi
@@ -321,12 +326,7 @@ inplace-postinstall-nginx: inplace-postinstall-permissions
321326
fi; \
322327
service="systemctl restart $$service"; \
323328
ln="ln -sf $(CURDIR)/etc/domjudge-fpm.conf $$phppool/domjudge-fpm.conf"; \
324-
echo $$ln; echo $$service; $$ln; $$service;
325-
326-
while [ `pwd` != "/" ]; do \
327-
setfacl -m u:$(WEBSERVER_GROUP):x .; \
328-
cd ..; \
329-
done
329+
echo $$ln; echo $$service; $$ln; $$service
330330

331331
inplace-postinstall-judgedaemon:
332332
cp $(CURDIR)/etc/sudoers-domjudge /etc/sudoers.d/domjudge

0 commit comments

Comments
 (0)