aboutsummaryrefslogtreecommitdiffstats
path: root/testing/openfire/openfire.post-install
blob: 9b2a66fae80f0501d964c1acfffbeeb8acbfa9c0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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