From a9f6f4f43a817ecb594c0674cdf5f80a0acd5900 Mon Sep 17 00:00:00 2001 From: Carlo Landmeter Date: Thu, 19 Jun 2014 15:49:00 +0200 Subject: main/zoneminder: use webapps and move storage to var/lib --- main/zoneminder/zoneminder.initd | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'main/zoneminder/zoneminder.initd') 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 +} -- cgit v1.2.3