summarylogtreecommitdiffstats
path: root/install
diff options
context:
space:
mode:
authorMartiMcFly2016-08-19 15:34:38 +0200
committerMartiMcFly2016-08-19 15:34:38 +0200
commit8b88767ff074b631e7ee30637b08d0456bcfc1dd (patch)
tree4526f8619a83f0b01cccdfb6f6ec91b1b8d4ea9f /install
parent66ff6672520cf6c81f5d207753e670397aa5cf26 (diff)
downloadaur-8b88767ff074b631e7ee30637b08d0456bcfc1dd.tar.gz
update to zarafa 7.2.4
Diffstat (limited to 'install')
-rw-r--r--install23
1 files changed, 20 insertions, 3 deletions
diff --git a/install b/install
index 0d09933b09c2..7fbc5eddd850 100644
--- a/install
+++ b/install
@@ -1,6 +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/sabre-zarafa/config.example.inc.php /etc/webapps/sabre-zarafa/config.inc.php
- chown -R http:http /var/log/sabre-zarafa
- chown -R http:http /var/lib/sabre-zarafa
+ cp -n /etc/webapps/sabre-zarafa/config.example.inc.php /etc/webapps/sabre-zarafa/config.inc.php
+
+ installdir http:http 0700 0600 /var/log/sabre-zarafa
+ installdir http:http 0700 0600 /var/lib/sabre-zarafa
}