summarylogtreecommitdiffstats
path: root/zoneminder.install
diff options
context:
space:
mode:
authorTroy Will2015-08-06 01:39:47 -0700
committerTroy Will2015-08-06 01:39:47 -0700
commit272d5d75b56315b511b5c4207eec21628cfbec85 (patch)
treec86357eb6bb687cee5441c731b43553ac91d8238 /zoneminder.install
parenta77653d63352814d4077dedb38fbbcb1b4d1ef05 (diff)
downloadaur-272d5d75b56315b511b5c4207eec21628cfbec85.tar.gz
PKGBUILD: fix PID directory permission
Diffstat (limited to 'zoneminder.install')
-rw-r--r--zoneminder.install24
1 files changed, 12 insertions, 12 deletions
diff --git a/zoneminder.install b/zoneminder.install
index e890c604834..edc233de602 100644
--- a/zoneminder.install
+++ b/zoneminder.install
@@ -10,7 +10,7 @@ post_install() {
\|^;extension=pdo_mysql.so$| s|^;||;
\|^;extension=sockets.so$| s|^;||;
\|^;extension=zip.so$| s|^;||;
- ' /etc/php/php.ini > /etc/php/php.ini.zoneminder
+ ' /etc/php/php.ini > /tmp/php.ini.zoneminder
# edit /etc/httpd/conf/httpd.conf for Zoneminder
sed -e '
@@ -29,7 +29,7 @@ post_install() {
# Include httpd-zoneminder.conf
\|^Include /etc/httpd/conf/extra/httpd-zoneminder.conf$|d;
s|^# Server-pool management (MPM specific)$|\nInclude /etc/httpd/conf/extra/httpd-zoneminder.conf\n&|;
- ' /etc/httpd/conf/httpd.conf > /etc/httpd/conf/httpd.conf.zoneminder
+ ' /etc/httpd/conf/httpd.conf > /tmp/httpd.conf.zoneminder
cat << EOF
@@ -48,7 +48,7 @@ post_install() {
PHP configuration
-----------------
- * Check and make sure these are uncommented in /etc/php/php.ini:
+ * Check and make sure these are uncommented in /etc/php/php.ini:
extension=ftp.so
extension=gd.so
extension=gettext.so
@@ -57,8 +57,6 @@ post_install() {
extension=pdo_mysql.so
extension=sockets.so
extension=zip.so
- * Add /etc/zm.conf, /srv/http/zoneminder, /var/cache/zoneminder, and /srv/zoneminder/socks to open_basedir in the zoneminder vhosts configuration file in apache:
- php_admin_value open_basedir "/srv/http/:/home/:/tmp/:/usr/share/pear/:/usr/share/webapps/:/etc/zm.conf:/srv/http/zoneminder/:/var/cache/zoneminder/:/srv/zoneminder/socks/:/var/log/zoneminder/"
* Set your timezone in php.ini:
date.timezone = <your_country>/<your_city>
@@ -111,13 +109,15 @@ Note:
==> Disable php with mysql if it isn't needed with others servers,
==> comment that lines in /etc/php/php.ini:
-==> "extension=mysql.so"
-==> "extension=gd.so"
-==> "extension=gettext.so"
-==> "extension=mcrypt.so"
-==> "extension=mysqli.so"
-==> "extension=sockets.so"
-==> "date.timezone = <my_country>/<my_city>"
+ # extension=ftp.so
+ # extension=gd.so
+ # extension=gettext.so
+ # extension=mcrypt.so
+ # extension=openssl.so
+ # extension=pdo_mysql.so
+ # extension=sockets.so
+ # extension=zip.so
+ # "date.timezone = <my_country>/<my_city>"
==> Remove log files and "zoneminder" directory in "/var/log/zoneminder".