summaryrefslogtreecommitdiffstats
path: root/tools/templates/core_pkg/base/metadir/+INSTALL
blob: 895c39c2c44261db24f979d0c5243913600cf6d7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/bin/sh

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

if [ ! -f /usr/local/share/%%PRODUCT_NAME%%/base.txz ]; then
	echo "===> ERROR: base tarball not found!"
	exit 1
fi

echo "===> Removing schg flag from base files"

# Cleanup schg flags
chflags -R noschg \
	/bin \
	/sbin \
	/usr/bin \
	/usr/sbin \
	/libexec \
	/lib \
	/usr/lib >/dev/null 2>&1

echo "===> Extracting new base tarball"

# Install new base files
tar -C / -xJPUf /usr/local/share/%%PRODUCT_NAME%%/base.txz

exit $?
OpenPOWER on IntegriCloud