UI - use systemctl on Linux

This commit is contained in:
bunkerity
2021-08-18 14:09:42 +02:00
parent fde14d1621
commit b948e08bd5
5 changed files with 23 additions and 16 deletions

View File

@@ -838,9 +838,9 @@ fi
do_and_check_cmd chmod 755 /opt/bunkerized-nginx
# Allow nginx group to do nginx reload as root
if [ "$OS" != "alpine" ] ; then
do_and_check_cmd chown root:nginx /opt/bunkerized-nginx/ui/nginx-reload.sh
do_and_check_cmd chmod 750 /opt/bunkerized-nginx/ui/nginx-reload.sh
do_and_check_cmd chmod u+s /opt/bunkerized-nginx/ui/nginx-reload.sh
do_and_check_cmd chown root:nginx /opt/bunkerized-nginx/ui/linux.sh
do_and_check_cmd chmod 750 /opt/bunkerized-nginx/ui/linux.sh
do_and_check_cmd chmod u+s /opt/bunkerized-nginx/ui/linux.sh
fi
# Prepare log files and folders