diff options
author | MartiMcFly | 2016-08-19 15:34:38 +0200 |
---|---|---|
committer | MartiMcFly | 2016-08-19 15:34:38 +0200 |
commit | 8b88767ff074b631e7ee30637b08d0456bcfc1dd (patch) | |
tree | 4526f8619a83f0b01cccdfb6f6ec91b1b8d4ea9f /install | |
parent | 66ff6672520cf6c81f5d207753e670397aa5cf26 (diff) | |
download | aur-8b88767ff074b631e7ee30637b08d0456bcfc1dd.tar.gz |
update to zarafa 7.2.4
Diffstat (limited to 'install')
-rw-r--r-- | install | 23 |
1 files changed, 20 insertions, 3 deletions
@@ -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 } |