#!/bin/sh set -e # abort on error servicewrp () { # wrapper System-V-Init / systemd # usage: servicewrp if which systemctl 1>/dev/null 2>&1 then # systemd systemctl $* || true else # sys V init /etc/init.d/$2 $1 || true fi } if ! A2ENSITE=$(which a2ensite) then echo "no apache installation detected -> no configuration done." exit 0 fi # the .conf is necessary for Debian7 $A2ENSITE sysal-doc.conf # restart apache servicewrp restart apache2