diff options
author | MartiMcFly | 2016-08-19 15:34:40 +0200 |
---|---|---|
committer | MartiMcFly | 2016-08-19 15:34:40 +0200 |
commit | 4e2b7bf6d52004e26c5622bd4b41a78c27313fe0 (patch) | |
tree | 35371a8f4b2e83bf057562501a9fd7f6998ffae2 /install | |
parent | 24382f6b4f5766ec2dc3a7ef32f502ef89f52da0 (diff) | |
download | aur-4e2b7bf6d52004e26c5622bd4b41a78c27313fe0.tar.gz |
update to zarafa 7.2.4
Diffstat (limited to 'install')
-rw-r--r-- | install | 22 |
1 files changed, 18 insertions, 4 deletions
@@ -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 } |