aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKaarle Ritvanen <kunkku@alpinelinux.org>2022-11-26 18:24:29 +0200
committerKaarle Ritvanen <kunkku@alpinelinux.org>2022-11-30 12:27:10 +0200
commita2ec4395f29bc0c0110fc6d378bb6ac6ea829349 (patch)
treeae3b773538b8b9e80ab1752df044e34cd22c7e41
parent789dafce339b1e85764d368f4e8e2ba3d1844375 (diff)
downloadaports-a2ec4395f29bc0c0110fc6d378bb6ac6ea829349.tar.gz
aports-a2ec4395f29bc0c0110fc6d378bb6ac6ea829349.tar.bz2
aports-a2ec4395f29bc0c0110fc6d378bb6ac6ea829349.tar.xz
community/zoneminder: create cache dir
-rw-r--r--community/zoneminder/APKBUILD4
-rw-r--r--community/zoneminder/zoneminder.initd6
2 files changed, 7 insertions, 3 deletions
diff --git a/community/zoneminder/APKBUILD b/community/zoneminder/APKBUILD
index 5e95ac73cc..7cc0fa3da6 100644
--- a/community/zoneminder/APKBUILD
+++ b/community/zoneminder/APKBUILD
@@ -3,7 +3,7 @@
# Maintainer: Kaarle Ritvanen <kunkku@alpinelinux.org>
pkgname=zoneminder
pkgver=1.36.31
-pkgrel=2
+pkgrel=3
_crud=14292374ccf1328f2d5db20897bd06f99ba4d938
_enum=ea90c0cd7f6e24333a90885e563b5d30b793db29
_rtsp=eab32851421ffe54fec0229c3efc44c642bc8d46
@@ -142,6 +142,6 @@ b4ee5c38133efe4fe71812607b41723b2caae6bd88dfdabf28ddb3066fbb4b92b836084c625a7bcf
245012f634b6039f819ac2fb512313797dd514e160a9d0dbfd7e03e8d957b73846746ce5b5575341628a3e7aac0085891f01bb1d0e709b804ffaf27541e76f53 RtspServer-eab32851421ffe54fec0229c3efc44c642bc8d46.tar.gz
75f2188e548b98191c8df82fb76e918f3bda9788f541449df8fa92449ad19aa0b9c13420dd91c760e08a4d31956ad51602242ab97e3bd4460f01e99f49992453 CakePHP-Enum-Behavior-ea90c0cd7f6e24333a90885e563b5d30b793db29.tar.gz
da58528686baf05385ad08079f965bce10eba6d599133ab773e9ab1f9e4b7d82cf5431b4b773317b90effb16e0b026a029bdfabe08a9ef1a5e9b94e7a1c2ea9e crud-14292374ccf1328f2d5db20897bd06f99ba4d938.tar.gz
-c667607ddbaaecae39d8e56a4312b99fa2b795ca11f4ed97e2f517a885b63669a5b214ca870a1fccabd0f6b25867e994fd3858fa1d8d5b7f2ce18d15d3214eab zoneminder.initd
+0465e5f98ae0b4bfa092dff707e92b6a0214b7860c5a0e9f864eabf431df5200137854ddbd97397aa3d7b6ab988343ba4cc1eaa40daffa7de50e4cd9abf0e8e4 zoneminder.initd
b1ca1fd225092a092d3ec2903d02b66a5698b7c1106eeed8627d7c954cf4f7d91b8ca7db3eb351fb8c7b585678091c2fcf2f8adb8cbfceea9e0494f9a71cd30f musl-fix.patch
"
diff --git a/community/zoneminder/zoneminder.initd b/community/zoneminder/zoneminder.initd
index 937d9f025e..7284374204 100644
--- a/community/zoneminder/zoneminder.initd
+++ b/community/zoneminder/zoneminder.initd
@@ -33,7 +33,11 @@ stop() {
}
status() {
- ( . $CONFIG_FILE && chgrp $ZM_WEB_GROUP $CONFIG_FILE )
+ (
+ . $CONFIG_FILE || exit
+ chgrp $ZM_WEB_GROUP $CONFIG_FILE
+ checkpath -d -m 755 -o $ZM_WEB_USER:$ZM_WEB_GROUP /var/cache/zoneminder
+ )
status=$($command status)
echo $status
[ "$status" = running ]