VirtualBox

Changeset 20308 in vbox for trunk/src/VBox/Installer


Ignore:
Timestamp:
Jun 5, 2009 9:39:04 AM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
48203
Message:

Solaris/Installer: boot-archive update and python installs only on global zone.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Installer/solaris/postinstall.sh

    r20288 r20308  
    8282        exit 2
    8383    fi
    84 fi
    8584
    86 echo "Configuring services and drivers..."
     85    echo "Configuring services and drivers..."
    8786
    88 if test "$currentzone" = "global"; then
    8987    # Web service
    9088    if test -f /var/svc/manifest/application/virtualbox/webservice.xml; then
     
    117115        /usr/sbin/svcadm enable -s svc:/application/virtualbox/zoneaccess
    118116    fi
    119 fi
    120117
    121 #
    122 # Install python bindings
    123 #
    124 if test -f "/opt/VirtualBox/sdk/installer/vboxapisetup.py" || test -h "/opt/VirtualBox/sdk/installer/vboxapisetup.py"; then
    125     PYTHONBIN=`which python`
    126     if test -f "$PYTHONBIN" || test -h "$PYTHONBIN"; then
    127         echo "Installing Python bindings..."
     118    # Install python bindings
     119    if test -f "/opt/VirtualBox/sdk/installer/vboxapisetup.py" || test -h "/opt/VirtualBox/sdk/installer/vboxapisetup.py"; then
     120        PYTHONBIN=`which python`
     121        if test -f "$PYTHONBIN" || test -h "$PYTHONBIN"; then
     122            echo "Installing Python bindings..."
    128123
    129         VBOX_INSTALL_PATH=/opt/VirtualBox
    130         export VBOX_INSTALL_PATH
    131         cd /opt/VirtualBox/sdk/installer
    132         $PYTHONBIN ./vboxapisetup.py install
    133     else
    134         echo "** WARNING! Python not found, skipped installed Python bindings."
    135         echo "   Manually run '/opt/VirtualBox/sdk/installer/vboxapisetup.py install'"
    136         echo "   to install the bindings when python is available."
     124            VBOX_INSTALL_PATH=/opt/VirtualBox
     125            export VBOX_INSTALL_PATH
     126            cd /opt/VirtualBox/sdk/installer
     127            $PYTHONBIN ./vboxapisetup.py install > /dev/null
     128        else
     129            echo "** WARNING! Python not found, skipped installed Python bindings."
     130            echo "   Manually run '/opt/VirtualBox/sdk/installer/vboxapisetup.py install'"
     131            echo "   to install the bindings when python is available."
     132        fi
     133    fi
     134
     135    # Update boot archive
     136    BOOTADMBIN=/sbin/bootadm
     137    if test -f "$BOOTADMBIN" || test -h "$BOOTADMBIN"; then
     138        echo "Updating boot archive..."
     139        $BOOTADMBIN update-archive > /dev/null
    137140    fi
    138141fi
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