summaryrefslogtreecommitdiff
path: root/java/jdk14/files/pkg-install.in
blob: fa980a9778f0a4626ee12fcc2266fbb57fa52a97 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/sh

# System preference location
PREFS_LOCATION=%%JRE_HOME%%

# Set up system preferences during post install
if [ "$2" = "POST-INSTALL" ]; then
	if [ ! -d "${PREFS_LOCATION}/.systemPrefs" ] ; then
		mkdir -m 755 "${PREFS_LOCATION}/.systemPrefs"
	fi
	if [ ! -f "${PREFS_LOCATION}/.systemPrefs/.system.lock" ] ; then
		touch "${PREFS_LOCATION}/.systemPrefs/.system.lock"
		chmod 644 "${PREFS_LOCATION}/.systemPrefs/.system.lock"
	fi
	if [ ! -f "${PREFS_LOCATION}/.systemPrefs/.systemRootModFile" ] ; then
		touch "${PREFS_LOCATION}/.systemPrefs/.systemRootModFile"
		chmod 644 "${PREFS_LOCATION}/.systemPrefs/.systemRootModFile"
	fi
fi