index 12252fa9166c3781c3ced44d0d85fffe5d08ba6e..6a4a072aa28b47fd2578ff53cc4633f8330be150 100644 (file)
fi
fi
- # Remove GOsa include
- [ -L /etc/apache2/conf.d/gosa.conf ] && rm -f /etc/apache2/conf.d/gosa.conf
+ if [ -d /etc/apache2/conf.d ]; then
+ # Remove GOsa include
+ [ -L /etc/apache2/conf.d/gosa.conf ] && rm -f /etc/apache2/conf.d/gosa.conf
-
- # Restart servers
- if [ -x /usr/sbin/invoke-rc.d ]; then
+ # Restart servers
+ if [ -x /usr/sbin/invoke-rc.d ]; then
invoke-rc.d apache2 restart
- else
+ else
/etc/init.d/apache2 restart
+ fi
fi
+ if [ -d /etc/lighttpd/conf-available ]; then
+ # Remove GOsa include
+ [ -L /etc/lighttpd/conf-enabled/99gosa-lighttpd.conf ] && rm -f /etc/lighttpd/conf-enabled/99gosa-lighttpd.conf
+
+ # Restart servers
+ if [ -x /usr/sbin/invoke-rc.d ]; then
+ invoke-rc.d lighttpd restart
+ else
+ /etc/init.d/lighttpd restart
+ fi
+ fi
+
;;
upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)