diff options
author | Cecil Hugh Watson <knoppmyth@gmail.com> | 2009-09-05 21:08:49 (GMT) |
---|---|---|
committer | Cecil Hugh Watson <knoppmyth@gmail.com> | 2009-09-05 21:08:49 (GMT) |
commit | 87af0223bb6bf389e73bd6d474b31b6a7177f86f (patch) | |
tree | 97ae5882f5c20de6e78fe542e207a11ddf4b5fc9 /abs/core-testing/zoneminder/zoneminder.install | |
parent | 8151fa32c2bf2c112d9110ecf9232b0f7bab331d (diff) | |
download | linhes_pkgbuild-87af0223bb6bf389e73bd6d474b31b6a7177f86f.zip linhes_pkgbuild-87af0223bb6bf389e73bd6d474b31b6a7177f86f.tar.gz linhes_pkgbuild-87af0223bb6bf389e73bd6d474b31b6a7177f86f.tar.bz2 |
Zoneminder:Changes needed to run on LinHES.
Diffstat (limited to 'abs/core-testing/zoneminder/zoneminder.install')
-rw-r--r-- | abs/core-testing/zoneminder/zoneminder.install | 36 |
1 files changed, 5 insertions, 31 deletions
diff --git a/abs/core-testing/zoneminder/zoneminder.install b/abs/core-testing/zoneminder/zoneminder.install index 27ba60a..c2ae861 100644 --- a/abs/core-testing/zoneminder/zoneminder.install +++ b/abs/core-testing/zoneminder/zoneminder.install @@ -7,46 +7,20 @@ pre_install() { ## arg 1: the new package version post_install() { -chown nobody.nobody /home/httpd/html/zm/events -chown nobody.nobody /home/httpd/html/zm/images -chown nobody.nobody /home/httpd/html/zm/temp -chown nobody.nobody /etc/zm.conf +chown http.http /data/srv/httpd/htdocs/zm/events +chown http.http /data/srv/httpd/htdocs/zm/images +chown http.http /data/srv/httpd/htdocs/zm/temp +chown http.http /etc/zm.conf cat << EOF Note: -==> Edit /etc/zm.conf to define a user and password for +==> mythtv has been defined in /etc/zm.conf as user and password for ==> The zoneminder (zm) database ==> To initialize the ZoneMinder database run (as root) ==> /usr/lib/zm/bin/zminit EOF -cat /etc/php/php.ini |grep "^extension=mysql.so" >/dev/null || cat << EOF -==> You must edit /etc/php/php.ini and uncomment "extension=mysql.so" -==> so php and MySQL can play together. - -EOF -cat /etc/php/php.ini |grep "^short_open_tag = On" >/dev/null || cat << EOF -==> You must edit /etc/php/php.ini and set short_open_tag = On -==> or ZoneMinder will not work - -EOF - - -cat /etc/php/php.ini |grep "^open_basedir.*/etc/" >/dev/null || cat << EOF -==> You must edit /etc/php/php.ini and add to it open_basedir "/etc/" as such: -==> open_basedir = /home/:/tmp/:/usr/share/pear/:/etc/ -==> Otherwise ZoneMinder will be unable to read /etc/zm.conf - -EOF - -cat /etc/httpd/conf/httpd.conf |grep "^LoadModule php" >/dev/null || cat << EOF -Note: -==> You must edit /etc/httpd/conf/httpd.conf and uncomment the line -==> #LoadModule php5_module modules/libphp5.so - -EOF - cat /etc/sysctl.conf |grep "kernel.shmall" >/dev/null || cat << EOF ==> To raise the limit on shared memory for zoneminder ==> add these lines to /etc/sysctl.conf |