aboutsummaryrefslogtreecommitdiffstats
path: root/community/openfire/openfire.post-install
diff options
context:
space:
mode:
Diffstat (limited to 'community/openfire/openfire.post-install')
-rwxr-xr-xcommunity/openfire/openfire.post-install18
1 files changed, 18 insertions, 0 deletions
diff --git a/community/openfire/openfire.post-install b/community/openfire/openfire.post-install
new file mode 100755
index 0000000000..9b2a66fae8
--- /dev/null
+++ b/community/openfire/openfire.post-install
@@ -0,0 +1,18 @@
+#!/bin/sh
+
+_ofhome=/var/lib/openfire
+
+for conf in "$_ofhome"/conf/openfire.xml \
+ "$_ofhome"/conf/security.xml \
+ "$_ofhome"/resources/security/client.truststore \
+ "$_ofhome"/resources/security/keystore \
+ "$_ofhome"/resources/security/truststore
+do
+ if [ -f "$conf" ]
+ then
+ printf "$conf exists. Not creating new one. \n\n"
+ else
+ printf "Copying new $conf \n"
+ cp -av "$conf".default "$conf" || printf "Copying new $conf failed. \n\n"
+ fi
+done