summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO4
-rw-r--r--PKGBUILD4
-rw-r--r--install8
3 files changed, 11 insertions, 5 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 94296083074a..415933c5a606 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,9 +1,9 @@
# Generated by mksrcinfo v8
-# Tue Dec 1 00:13:00 UTC 2015
+# Tue Dec 1 01:04:22 UTC 2015
pkgbase = z-push
pkgdesc = open-source implementation of the ActiveSync protocol
pkgver = 2.2.5
- pkgrel = 3
+ pkgrel = 4
url = http://z-push.sf.net/
install = install
arch = any
diff --git a/PKGBUILD b/PKGBUILD
index d5a487c7bb51..b96ee01c6fcb 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -4,7 +4,7 @@
pkgname=z-push
pkgver=2.2.5
-pkgrel=3
+pkgrel=4
pkgdesc="open-source implementation of the ActiveSync protocol"
arch=('any')
url="http://z-push.sf.net/"
@@ -62,5 +62,5 @@ package() {
mkdir -p ${pkgdir}/etc/php/fpm.d
cp ${srcdir}/z-push.conf ${pkgdir}/etc/php/fpm.d
- mkdir -p ${pkgdir}/var/{lib,log}/z-push
+ mkdir -p ${pkgdir}/var/log/z-push
}
diff --git a/install b/install
index 161f5e93dd11..9152473a60d7 100644
--- a/install
+++ b/install
@@ -1,6 +1,12 @@
post_install() {
cp -n /etc/webapps/z-push/config.example.php /etc/webapps/z-push/config.php
+
+ if [[ ! -e /var/lib/z-push ]];
+ then
+ mkdir -p /var/lib/z-push
+ chown -R http:http /var/lib/z-push
+ fi
+
chown -R http:http /var/log/z-push
- chown -R http:http /var/lib/z-push
}