diff options
author | James Meyer <james.meyer@operamail.com> | 2009-01-19 15:22:40 (GMT) |
---|---|---|
committer | James Meyer <james.meyer@operamail.com> | 2009-01-19 15:22:40 (GMT) |
commit | eaa1e24dfe16f3f5a3d12b194f977e971c8f4b4b (patch) | |
tree | 1039b920717da374ee67975622724f17f6fe89e1 /abs/core-testing/zoneminder/customdb | |
parent | e7d7822ab75eeb5b35fd7ee6d9a1cfc4e730272e (diff) | |
parent | 6f90626a0bf289be8f0497fd6b135c7ef831e0fd (diff) | |
download | linhes_pkgbuild-eaa1e24dfe16f3f5a3d12b194f977e971c8f4b4b.zip linhes_pkgbuild-eaa1e24dfe16f3f5a3d12b194f977e971c8f4b4b.tar.gz linhes_pkgbuild-eaa1e24dfe16f3f5a3d12b194f977e971c8f4b4b.tar.bz2 |
Merge branch 'HEAD' of ssh://jams@knoppmyth.net/mount/repository/LinHES-PKGBUILD.git
Diffstat (limited to 'abs/core-testing/zoneminder/customdb')
-rwxr-xr-x | abs/core-testing/zoneminder/customdb | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/abs/core-testing/zoneminder/customdb b/abs/core-testing/zoneminder/customdb new file mode 100755 index 0000000..93ce7fe --- /dev/null +++ b/abs/core-testing/zoneminder/customdb @@ -0,0 +1,31 @@ +#!/bin/sh +DBHOST=$1 +DBNAME=$2 +USERNAME=$3 +PASSWORD=$4 + +ZM_PATH_ZMS=/cgi-bin/nph-zms +ZM_PATH_SOCKS=/var/lib/zm +ZM_PATH_LOGS=/var/log/zm +ZM_WEB_LIST_THUMBS=1 +ZM_WEB_MONTAGE_WIDTH=320 +ZM_WEB_MONTAGE_HEIGHT=240 +ZM_OPT_CAMBOZOLA=1 +ZM_OPT_MPEG=ffmpeg +ZM_PATH_FFMPEG=/usr/bin/ffmpeg +ZM_OPT_NETPBM=1 +ZM_EXTRA_DEBUG_LOG=/var/log/zm/zm_debug.log+ +ZM_OPT_USE_AUTH=0 + +sql=/tmp/$$ +echo "" >$sql +for n in ZM_PATH_ZMS ZM_PATH_SOCKS ZM_PATH_LOGS ZM_WEB_LIST_THUMBS ZM_WEB_MONTAGE_WIDTH ZM_WEB_MONTAGE_HEIGHT ZM_OPT_CAMBOZOLA ZM_OPT_MPEG ZM_PATH_FFMPEG ZM_OPT_NETPBM ZM_EXTRA_DEBUG_LOG ZM_OPT_USE_AUTH; do + eval "val=\$$n" + echo "UPDATE Config SET Value='$val' WHERE Name='$n';" >>$sql +done + +cat $sql | mysql --user=$USERNAME --password=$PASSWORD --host=$DBHOST $DBNAME +rm -f $sql + + +exit 0 |