View | Details | Raw Unified | Return to bug 29808
Collapse All | Expand All

(-)script/disable-apache2-umc (-4 / +14 lines)
 Lines 30-40    Link Here 
30
# /usr/share/common-licenses/AGPL-3; if not, see
30
# /usr/share/common-licenses/AGPL-3; if not, see
31
# <http://www.gnu.org/licenses/>.
31
# <http://www.gnu.org/licenses/>.
32
32
33
for prog in apache2 \
33
if [ "$1" = "-h" -o "$1" = "--help" ] ; then
34
            univention-management-console-web-server \
34
	echo "$(basename "$0") [--help] [--exclude-apache]"
35
            univention-management-console-server \
35
	exit 1
36
			; do
36
fi
37
37
38
if [ "$1" = "--exclude-apache" ] ; then
39
	EXCLUDEAPACHE="exclude-apache"
40
fi
41
42
PROGS="univention-management-console-web-server univention-management-console-server"
43
if [ -z "$EXCLUDEAPACHE" ]; then
44
        PROGS="apache2 $PROGS"
45
fi
46
47
for prog in $PROGS; do
38
	if [ -x "/usr/sbin/$prog" ]; then
48
	if [ -x "/usr/sbin/$prog" ]; then
39
		/usr/sbin/dpkg-statoverride --add root root 0644 "/usr/sbin/$prog" >/dev/null 2>&1
49
		/usr/sbin/dpkg-statoverride --add root root 0644 "/usr/sbin/$prog" >/dev/null 2>&1
40
		/bin/chmod a-x "/usr/sbin/$prog"
50
		/bin/chmod a-x "/usr/sbin/$prog"

Return to bug 29808