diff options
author | Carlo Landmeter <clandmeter@gmail.com> | 2014-07-03 10:35:18 +0200 |
---|---|---|
committer | Carlo Landmeter <clandmeter@gmail.com> | 2014-07-03 10:35:29 +0200 |
commit | c5471bd6117c8bee76fcd8a0ecf89f584420997c (patch) | |
tree | bfbece39dd8e6a4946e92d3c4d21dc67c39ef5cc /main/zoneminder/zoneminder.initd | |
parent | a109caf76a9432a80ba408a5250aa454fc8bee0c (diff) | |
download | aports-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.initd | 14 |
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 } + |