Automatically a2enmod rewrite

pull/4653/head
Isaac Connor 2026-02-26 12:15:03 -05:00
parent 41a87f7b33
commit 90d641f317
1 changed files with 8 additions and 0 deletions

View File

@ -82,6 +82,14 @@ if [ "$1" = "configure" ]; then
fi
fi
if [ ! -e "/etc/apache2/mods-enabled/rewrite.load" ] && [ "$(command -v a2enmod)" != "" ]; then
echo "The rewrite module is not enabled in apache2. I am enabling it using a2enmod rewrite."
if [ -e /usr/share/apache2/apache2-maintscript-helper ] ; then
. /usr/share/apache2/apache2-maintscript-helper
apache2_invoke rewrite cgi || exit $?
fi
fi
SYSTEMD=0
if [ -e "/run/systemd/system" ]; then
SYSTEMD=1