Do not prevent apache-restart when using AppCenter (Bug #29808) Index: script/disable-apache2-umc =================================================================== --- script/disable-apache2-umc (Revision 37887) +++ script/disable-apache2-umc (Arbeitskopie) @@ -30,11 +30,21 @@ # /usr/share/common-licenses/AGPL-3; if not, see # . -for prog in apache2 \ - univention-management-console-web-server \ - univention-management-console-server \ - ; do +if [ "$1" = "-h" -o "$1" = "--help" ] ; then + echo "$(basename "$0") [--help] [--exclude-apache]" + exit 1 +fi +if [ "$1" = "--exclude-apache" ] ; then + EXCLUDEAPACHE="exclude-apache" +fi + +PROGS="univention-management-console-web-server univention-management-console-server" +if [ -z "$EXCLUDEAPACHE" ]; then + PROGS="apache2 $PROGS" +fi + +for prog in $PROGS; do if [ -x "/usr/sbin/$prog" ]; then /usr/sbin/dpkg-statoverride --add root root 0644 "/usr/sbin/$prog" >/dev/null 2>&1 /bin/chmod a-x "/usr/sbin/$prog"