summaryrefslogtreecommitdiff
path: root/libexec
diff options
context:
space:
mode:
authorMartin Konold <martin.konold@erfrakon.de>2005-12-12 00:31:52 (GMT)
committerMartin Konold <martin.konold@erfrakon.de>2005-12-12 00:31:52 (GMT)
commita4b74271a54f6760c3f22238a69674c81ea59d88 (patch)
treef5cbbb9767b343ebf6ed28fdae22ad7da4e65fde /libexec
parent7438f810b73adf64b7a2364dc5eae6bfe1040d73 (diff)
downloadkolab-server-a4b74271a54f6760c3f22238a69674c81ea59d88.tar.gz
Martin Konold: Cleaner sed usage. See also issue#1028. Patch from rbos
Diffstat (limited to 'libexec')
-rwxr-xr-xlibexec/showuser.in6
-rwxr-xr-xlibexec/start.in4
-rwxr-xr-xlibexec/stop.in4
3 files changed, 5 insertions, 9 deletions
diff --git a/libexec/showuser.in b/libexec/showuser.in
index 4cf8a57..a3080d9 100755
--- a/libexec/showuser.in
+++ b/libexec/showuser.in
@@ -21,9 +21,9 @@ if [ ".$1" = ".--showhelp" ]; then
fi
server=127.0.0.1
-binddn=`cat @sysconfdir@/kolab/kolab.conf | grep "bind_dn :" | sed -e "s;bind_dn : ;;"`
-bindpw=`cat @sysconfdir@/kolab/kolab.conf | grep "bind_pw :" | sed -e "s;bind_pw : ;;"`
-basedn=`cat @sysconfdir@/kolab/kolab.conf | grep "base_dn :" | sed -e "s;base_dn : ;;"`
+binddn=`sed -n "s;bind_dn : ;;p" @sysconfdir@/kolab/kolab.conf`
+bindpw=`sed -n "s;bind_pw : ;;p" @sysconfdir@/kolab/kolab.conf`
+basedn=`sed -n "s;base_dn : ;;p" @sysconfdir@/kolab/kolab.conf`
if [ ".$1" = "." ]; then
diff --git a/libexec/start.in b/libexec/start.in
index b5e46be..c601add 100755
--- a/libexec/start.in
+++ b/libexec/start.in
@@ -14,8 +14,6 @@
## Project's homepage; see <http://www.gnu.org/licenses/gpl.html>.
##
-prefix=@prefix@
-
if [ ".$1" = ".--showhelp" ]; then
echo "Start the server"
exit 0
@@ -23,4 +21,4 @@ if [ ".$1" = ".--showhelp" ]; then
fi
-${prefix}/bin/openpkg rc all start
+@bindir@/openpkg rc all start
diff --git a/libexec/stop.in b/libexec/stop.in
index 134dc5f..7f88e22 100755
--- a/libexec/stop.in
+++ b/libexec/stop.in
@@ -14,8 +14,6 @@
## Project's homepage; see <http://www.gnu.org/licenses/gpl.html>.
##
-prefix=@prefix@
-
if [ ".$1" = ".--showhelp" ]; then
echo "Stop the server"
exit 0
@@ -23,4 +21,4 @@ if [ ".$1" = ".--showhelp" ]; then
fi
-${prefix}/bin/openpkg rc all stop
+@bindir@/openpkg rc all stop