summaryrefslogtreecommitdiff
path: root/libexec
diff options
context:
space:
mode:
authorGunnar Wrobel <wrobel@pardus.de>2008-02-06 17:48:54 (GMT)
committerGunnar Wrobel <wrobel@pardus.de>2008-02-06 17:48:54 (GMT)
commit914a9e0bdb0dba18c2feba482f04e0c5fd701e58 (patch)
tree4949717cb5d324a1144255404c97ff7682fcda2b /libexec
parente64fcaceffc64bff85102c1b13ba392aa0d151b5 (diff)
downloadkolab-server-914a9e0bdb0dba18c2feba482f04e0c5fd701e58.tar.gz
Use @PHP@ as richard suggested ;) and correctly export the CLI variables.
Diffstat (limited to 'libexec')
-rw-r--r--libexec/generatefb.in9
1 files changed, 6 insertions, 3 deletions
diff --git a/libexec/generatefb.in b/libexec/generatefb.in
index 7ae0d7e..571cff1 100644
--- a/libexec/generatefb.in
+++ b/libexec/generatefb.in
@@ -49,10 +49,10 @@ while getopts hu:p: ARGS; do
usage
;;
u) # User
- export CLI_USER="${OPTARG}"
+ CLI_USER="${OPTARG}"
;;
p) # Pass
- export CLI_PASS="${OPTARG}"
+ CLI_PASS="${OPTARG}"
;;
esac
done
@@ -62,4 +62,7 @@ if [ -z "$CLI_PASS" ]; then
usage
fi
-php -c @phpini_dir@/php.ini @freebusy_confdir@/generatefb.php
+export CLI_USER
+export CLI_PASS
+
+@PHP@ -c @phpini_dir@/php.ini @freebusy_confdir@/generatefb.php