summaryrefslogtreecommitdiffstats
path: root/tools/templates/core_pkg/default-config/metadir/+INSTALL
blob: 537e193e6ea5951f502446453ffc55169c1273c1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/sh

if [ "${2}" != "POST-INSTALL" ]; then
	exit 0
fi

if [ ! -f /cf/conf/config.xml ]; then
	cp /conf.default/config.xml /cf/conf/config.xml
fi

if [ ! -L /conf ]; then
	ln -sf /cf/conf /conf
fi

if [ ! -d /cf/conf/backup ]; then
	mkdir /cf/conf/backup
fi

echo "%%FLAVOR%%" > /etc/default-config-flavor

exit 0
OpenPOWER on IntegriCloud