aboutsummaryrefslogtreecommitdiffstats
path: root/main/zoneminder/zoneminder.initd
diff options
context:
space:
mode:
authorCarlo Landmeter <clandmeter@gmail.com>2014-07-03 10:35:18 +0200
committerCarlo Landmeter <clandmeter@gmail.com>2014-07-03 10:35:29 +0200
commitc5471bd6117c8bee76fcd8a0ecf89f584420997c (patch)
treebfbece39dd8e6a4946e92d3c4d21dc67c39ef5cc /main/zoneminder/zoneminder.initd
parenta109caf76a9432a80ba408a5250aa454fc8bee0c (diff)
downloadaports-c5471bd6117c8bee76fcd8a0ecf89f584420997c.tar.bz2
aports-c5471bd6117c8bee76fcd8a0ecf89f584420997c.tar.xz
main/zoneminder: add ffmpeg to depends and add perms initd option
Diffstat (limited to 'main/zoneminder/zoneminder.initd')
-rw-r--r--main/zoneminder/zoneminder.initd14
1 files changed, 12 insertions, 2 deletions
diff --git a/main/zoneminder/zoneminder.initd b/main/zoneminder/zoneminder.initd
index 0cecd48010..91d6a05faa 100644
--- a/main/zoneminder/zoneminder.initd
+++ b/main/zoneminder/zoneminder.initd
@@ -5,7 +5,7 @@
name=zoneminder
command=/usr/bin/zmpkg.pl
-extra_commands="setup"
+extra_commands="setup perms"
depend() {
after mysql
@@ -50,7 +50,17 @@ prepare() {
. /etc/zm.conf
install -d -o $ZM_WEB_USER -g $ZM_WEB_GROUP \
/var/run/zoneminder
- chown $ZM_WEB_USER:$ZM_WEB_GROUP \
+ perms simple
+}
+
+perms() {
+ . /etc/zm.conf
+ if [ "$1" != "simple" ]; then
+ ebegin "Setting correct permssion, this could take a while"
+ RECURSIVE="-R"
+ fi
+ chown $RECURSIVE $ZM_WEB_USER:$ZM_WEB_GROUP \
/var/lib/zoneminder/* \
/var/log/zoneminder
}
+