summarylogtreecommitdiffstats
path: root/install
diff options
context:
space:
mode:
authorMartiMcFly2016-08-19 15:34:40 +0200
committerMartiMcFly2016-08-19 15:34:40 +0200
commit4e2b7bf6d52004e26c5622bd4b41a78c27313fe0 (patch)
tree35371a8f4b2e83bf057562501a9fd7f6998ffae2 /install
parent24382f6b4f5766ec2dc3a7ef32f502ef89f52da0 (diff)
downloadaur-4e2b7bf6d52004e26c5622bd4b41a78c27313fe0.tar.gz
update to zarafa 7.2.4
Diffstat (limited to 'install')
-rw-r--r--install22
1 files changed, 18 insertions, 4 deletions
diff --git a/install b/install
index 399f8dfb9f3f..6a9087a1e230 100644
--- a/install
+++ b/install
@@ -1,9 +1,23 @@
+#!/bin/bash
+
+# care about existing files
+function installdir() {
+ local owner="$1"
+ local moddir="$2"
+ local modfile="$3"
+ local directory="$4"
+
+ mkdir -p "$directory"
+ find $directory -exec chown "$owner" {} \;
+ find $directory -type f -exec chmod "$modfile" {} \;
+ find $directory -type d -exec chmod "$moddir" {} \;
+}
+
+
post_install() {
cp -n /etc/webapps/z-push/config.example.php /etc/webapps/z-push/config.php
- mkdir -p /var/lib/z-push
-
- chown -R http:http /var/lib/z-push
- chown -R http:http /var/log/z-push
+ installdir http:http 700 600 /var/lib/z-push
+ installdir http:http 700 600 /var/log/z-push
}