Changeset 38522 in vbox for trunk/src/VBox/Installer
- Timestamp:
- Aug 25, 2011 8:53:23 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Installer/darwin/VirtualBox/postflight
r34275 r38522 69 69 echo "Installing vboxwebsrv launchd file to ${VBOXWEBSRV_TRG}" 70 70 ${CP} "${VBOXWEBSRV}" "${VBOXWEBSRV_TRG}/" 71 /usr/sbin/chown "${USER}" "${VBOXWEBSRV_TRG}/org.virtualbox.vboxwebsrv.plist"71 [ "x" != "x${USER}" ] && /usr/sbin/chown "${USER}" "${VBOXWEBSRV_TRG}/org.virtualbox.vboxwebsrv.plist" 72 72 fi 73 73 … … 85 85 # 86 86 LSREGISTER=/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/Support/lsregister 87 if [ -e ${LSREGISTER}]; then88 echo "Register file extensions for $USER"87 if [[ -e "${LSREGISTER}" && "x" != "x${USER}" ]]; then 88 echo "Register file extensions for \"${USER}\"" 89 89 /usr/bin/sudo -u "${USER}" ${LSREGISTER} -f /Applications/VirtualBox.app 90 90 /usr/bin/sudo -u "${USER}" ${LSREGISTER} -f /Applications/VirtualBox.app/Contents/Resources/vmstarter.app
Note:
See TracChangeset
for help on using the changeset viewer.