diff options
Diffstat (limited to 'java/linux-sun-jre16/files/pkg-install.in')
-rw-r--r-- | java/linux-sun-jre16/files/pkg-install.in | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/java/linux-sun-jre16/files/pkg-install.in b/java/linux-sun-jre16/files/pkg-install.in new file mode 100644 index 000000000000..fa980a9778f0 --- /dev/null +++ b/java/linux-sun-jre16/files/pkg-install.in @@ -0,0 +1,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 |