VirtualBox

Ignore:
Timestamp:
Jul 24, 2013 10:16:08 AM (11 years ago)
Author:
vboxsync
Message:

OS X installer: more checks for preinstall and postflight scripts.

Location:
trunk/src/VBox/Installer/darwin/VirtualBox
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Installer/darwin/VirtualBox/postflight

    r47362 r47366  
    1515CP="/bin/cp -f"
    1616CPDIR="${CP} -R"
    17 
    18 #
    19 # Correct the ownership of the directories in case there
    20 # was an existing installation.
    21 #
    22 chown -R root:admin /Applications/VirtualBox.app
    2317
    2418#
     
    9185fi
    9286
     87# Check environment.
     88if [ "${INSTALLER_TEMP}x" == "x" ]; then
     89    echo "Required environment variable INSTALLER_TEMP is missing. Aborting installation."
     90    exit 1;
     91fi
     92
    9393# Restore previously installed Extension Packs (if any)
    9494if [ -d "${INSTALLER_TEMP}/ExtensionPacks" ]; then
     
    9797fi
    9898
     99#
     100# Correct the ownership of the directories in case there
     101# was an existing installation.
     102#
     103chown -R root:admin /Applications/VirtualBox.app
     104
    99105exit 0;
  • trunk/src/VBox/Installer/darwin/VirtualBox/preinstall

    r47362 r47366  
    1313#
    1414
     15set -e
     16
     17# Check environment.
     18if [ "${INSTALLER_TEMP}x" == "x" ]; then
     19    echo "Required environment variable INSTALLER_TEMP is missing. Aborting installation."
     20    exit 1;
     21fi
     22
    1523# Backup previously installed Extension Packs before
    1624# installation process will completely remove previously installed
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette