diff options
author | MartiMcFly | 2018-05-31 00:41:12 +0200 |
---|---|---|
committer | MartiMcFly | 2018-05-31 00:41:12 +0200 |
commit | d9d145c6e74a09539f9ed6496898476214abd6f9 (patch) | |
tree | 3ccbda40dd0e24463a9a87acb8c8f268791359cc /kopano-webapp.install | |
download | aur-d9d145c6e74a09539f9ed6496898476214abd6f9.tar.gz |
init
Diffstat (limited to 'kopano-webapp.install')
-rw-r--r-- | kopano-webapp.install | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/kopano-webapp.install b/kopano-webapp.install new file mode 100644 index 000000000000..08d47de1c5c9 --- /dev/null +++ b/kopano-webapp.install @@ -0,0 +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() { + cp -n /etc/webapps/kopano-webapp/config.example.php /etc/webapps/kopano-webapp/config.php + cp -n /etc/webapps/kopano-webapp/debug.example.php /etc/webapps/kopano-webapp/debug.php + + installdir http:http 0700 0600 /var/log/kopano-webapp + installdir http:http 0700 0600 /var/lib/kopano-webapp +}
\ No newline at end of file |