From: janw Date: Thu, 18 Sep 2008 12:47:47 +0000 (+0000) Subject: No output from postinst. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=2d62af34cc74932b472001703f83d3a5c295c40f;p=gosa.git No output from postinst. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@12518 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-si/debian/gosa-si-server.postinst b/gosa-si/debian/gosa-si-server.postinst index e20a28fc9..0affbd763 100644 --- a/gosa-si/debian/gosa-si-server.postinst +++ b/gosa-si/debian/gosa-si-server.postinst @@ -35,7 +35,7 @@ esac if [ -w /etc/gosa-si/server.conf ]; then for i in database username password host; do eval 'val=$'$i - grep -E "mysql-$i" /etc/gosa-si/server.conf | grep -vE '^ *#' && sed -i "/\[server\]/,/\[/s/mysql-$i\s*=\s*\(.*\)$/mysql-$i = $val/g" /etc/gosa-si/server.conf || sed -i " + grep -E "mysql-$i" /etc/gosa-si/server.conf | grep -vE '^ *#' &> /dev/null && sed -i "/\[server\]/,/\[/s/mysql-$i\s*=\s*\(.*\)$/mysql-$i = $val/g" /etc/gosa-si/server.conf || sed -i " /\[server\]/ a\ mysql-$i = $val" /etc/gosa-si/server.conf done