Package nextcloud-apache2: Scripts

Post install

a2ensite nextcloud
a2enmod ssl
a2enport https
a2enmod rewrite
a2enmod env
a2enmod headers
a2enmod dir
a2enmod mime
# Generate SSL key
. cert-sh-functions
ssl_generate "nextcloud"
# Disable mod_php7 if it is enabled
/usr/sbin/apachectl2 -M | grep -q php7_module && ( a2dismod mod_php7 &>/dev/null ) ||:
/etc/rc.d/init.d/httpd2 condreload
Post uninstall

/etc/rc.d/init.d/httpd2 condreload