Code

Fix to be able to work with single objectType declarations
[gosa.git] / gosa-si / debian / gosa-si-client.postinst
index 42daeea8982fce8ae5921772fc86cbcbcd533b7f..cafe8c1cb96fec634fb46ee1240807488c6d06f6 100644 (file)
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/sh -e
 
 #DEBHELPER#
 
@@ -13,4 +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
+invoke-rc.d gosa-si restart
+
+
 exit 0