#!/bin/sh # sysal-gui postinst # activate rewrite engine if ! test -e /etc/apache2/mods-enabled/rewrite.load then ln -s /etc/apache2/mods-available/rewrite.load /etc/apache2/mods-enabled echo "rewrite engine enabled" fi a2ensite sysal-gui # put www-data to systemd-journal group for alarm log usermod -a -G systemd-journal www-data # restart apache systemctl reload apache2