Code

Fix to be able to work with single objectType declarations
[gosa.git] / gosa-si / debian / gosa-si-client.postinst
index a30db335d8fbb184dcbb9884ff8005b9397adc7f..cafe8c1cb96fec634fb46ee1240807488c6d06f6 100644 (file)
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/sh -e
 
 #DEBHELPER#
 
@@ -13,7 +13,11 @@ esac
 
 [ ! -d /usr/lib/gosa-si/client/events ] && install -d -o root -g root -m 750 /usr/lib/gosa-si/client/events
 
+# Fix permission
+[ -f /etc/gosa-si/client.conf ] && chmod go-rwx /etc/gosa-si/client.conf
+
 # Restart daemon
-/etc/init.d/gosa-si restart
+invoke-rc.d gosa-si restart
+
 
 exit 0