diff options
author | MartiMcFly | 2016-08-19 15:34:38 +0200 |
---|---|---|
committer | MartiMcFly | 2016-08-19 15:34:38 +0200 |
commit | ecaf7beb8702a7cf719ce03b3ec8c7bdd81cb4c6 (patch) | |
tree | a026ad2f31dde4b86c7519654d9be6724056170d /zarafa-webapp.install | |
parent | d713e5923391f3e0df93dcba3c70d92ec72e2963 (diff) | |
download | aur-ecaf7beb8702a7cf719ce03b3ec8c7bdd81cb4c6.tar.gz |
update to zarafa 7.2.4
Diffstat (limited to 'zarafa-webapp.install')
-rw-r--r-- | zarafa-webapp.install | 22 |
1 files changed, 19 insertions, 3 deletions
diff --git a/zarafa-webapp.install b/zarafa-webapp.install index c40f0dd0a7be..00be24b27639 100644 --- a/zarafa-webapp.install +++ b/zarafa-webapp.install @@ -1,6 +1,22 @@ +#!/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() { - mkdir -p /var/lib/zarafa-webapp + cp -n /etc/webapps/zarafa-webapp/config.example.php /etc/webapps/zarafa-webapp/config.php + cp -n /etc/webapps/zarafa-webapp/debug.example.php /etc/webapps/zarafa-webapp/debug.php - chown -R http:http /var/log/zarafa-webapp - chown -R http:http /var/lib/zarafa-webapp + installdir http:http 0700 0600 /var/log/zarafa-webapp + installdir http:http 0700 0600 /var/lib/zarafa-webapp }
\ No newline at end of file |