Use apache2_invoke instead of enmod

This commit is contained in:
Isaac Connor 2021-02-17 12:32:06 -05:00
parent b58ecca040
commit b4c594b15c
1 changed files with 4 additions and 1 deletions

View File

@ -52,7 +52,10 @@ if [ "$1" = "configure" ]; then
chown www-data:www-data /var/cache/zoneminder /var/cache/zoneminder/*
if [ ! -e "/etc/apache2/mods-enabled/cgi.load" ] && [ "$(command -v a2enmod)" != "" ]; then
echo "The cgi module is not enabled in apache2. I am enabling it using a2enmod cgi."
a2enmod cgi
if [ -e /usr/share/apache2/apache2-maintscript-helper ] ; then
. /usr/share/apache2/apache2-maintscript-helper
apache2_invoke enmod cgi || exit $?
fi
fi
SYSTEMD=0