mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-04 01:48:54 +00:00
59dce7e4d5
WWW: http://java.sun.com/javase/ Approved by: glewis (mentor)
20 lines
642 B
Bash
20 lines
642 B
Bash
#!/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
|