diff options
author | Carlo Landmeter <clandmeter@gmail.com> | 2014-06-19 15:49:00 +0200 |
---|---|---|
committer | Carlo Landmeter <clandmeter@gmail.com> | 2014-06-19 15:49:07 +0200 |
commit | a9f6f4f43a817ecb594c0674cdf5f80a0acd5900 (patch) | |
tree | 09ef73323eca2601d0b6e39796d0db3b866c71e4 /main/zoneminder/zoneminder.initd | |
parent | 27bbcb6d3871985ad908bf302a50d0d75f90010c (diff) | |
download | aports-a9f6f4f43a817ecb594c0674cdf5f80a0acd5900.tar.bz2 aports-a9f6f4f43a817ecb594c0674cdf5f80a0acd5900.tar.xz |
main/zoneminder: use webapps and move storage to var/lib
Diffstat (limited to 'main/zoneminder/zoneminder.initd')
-rw-r--r-- | main/zoneminder/zoneminder.initd | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/main/zoneminder/zoneminder.initd b/main/zoneminder/zoneminder.initd index f7adfcfd00..5d68e9d65e 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 @@ -44,3 +44,11 @@ setup() { < $ZM_PATH_DATA/db/zm_create.sql eend $? } + +perms() { + . /etc/zm.conf + ebegin "Setting correct permissions" + chown -R $ZM_WEB_USER:$ZM_WEB_GROUP $ZM_PATH_DATA $ZM_PATH_WEB \ + $ZM_PATH_CGI $ZM_PATH_LOGS $ZM_PATH_SOCKS $ZM_PATH_SWAP \ + $ZM_UPLOAD_FTP_LOC_DIR +} |