Changeset 85100 in vbox for trunk/src/VBox/Installer/darwin/VirtualBox
- Timestamp:
- Jul 7, 2020 9:51:37 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Installer/darwin/VirtualBox/postflight
r83054 r85100 17 17 # 18 18 19 CP ="/bin/cp -f"20 CPDIR="${CP} -R" 19 CPDIR="/bin/cp -f -R" 20 INSTALL=/usr/bin/install 21 21 22 22 … … 44 44 VBOXWEBSRV="${VBOX_INSTALL_PATH}/org.virtualbox.vboxwebsrv.plist" 45 45 VBOXWEBSRV_TRG="${HOME}/Library/LaunchAgents" 46 if [ [ -e "${VBOXWEBSRV}" && -e "${VBOXWEBSRV_TRG}" ]]; then46 if [ -e "${VBOXWEBSRV}" -a -e "${VBOXWEBSRV_TRG}" ]; then 47 47 echo "Installing vboxwebsrv launchd file to ${VBOXWEBSRV_TRG}" 48 ${CP} "${VBOXWEBSRV}" "${VBOXWEBSRV_TRG}/" 49 [ "x" != "x${USER}" ] && /usr/sbin/chown "${USER}" "${VBOXWEBSRV_TRG}/org.virtualbox.vboxwebsrv.plist" 48 if [ "x" != "x${USER}" ]; then 49 ${INSTALL} -S -o "${USER}" -m 0644 "${VBOXWEBSRV}" "${VBOXWEBSRV_TRG}/" 50 else 51 ${INSTALL} -S -m 0644 "${VBOXWEBSRV}" "${VBOXWEBSRV_TRG}/" 52 fi 50 53 fi 51 54 … … 63 66 # 64 67 LSREGISTER=/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/Support/lsregister 65 if [ [ -e "${LSREGISTER}" && "x" != "x${USER}" ]]; then68 if [ -e "${LSREGISTER}" -a "x" != "x${USER}" ]; then 66 69 echo "Register file extensions for \"${USER}\"" 67 70 /usr/bin/sudo -u "${USER}" ${LSREGISTER} -f /Applications/VirtualBox.app
Note:
See TracChangeset
for help on using the changeset viewer.