postflight revision 01892aaba1ec28bb5179c9f32b3fa79e49e59df9
306N/A# Copyright (C) 2007-2010 Oracle Corporation 306N/A# This file is part of VirtualBox Open Source Edition (OSE), as 306N/A# you can redistribute it and/or modify it under the terms of the GNU 306N/A# General Public License (GPL) as published by the Free Software 306N/A# Foundation, in version 2 as it comes in the "COPYING" file of the 306N/A# VirtualBox OSE distribution. VirtualBox OSE is distributed in the 306N/A# hope that it will be useful, but WITHOUT ANY WARRANTY of any kind. 306N/A# Correct the ownership of the directories in case there 306N/A# was an existing installation. 306N/A# Select the right architecture. 493N/A# Install the Python bindings 306N/A # Install the python bindings if python is in the path 306N/A if [
"`\${p} -c 'print "test"' 2> /dev/null`" =
"test" ];
then 306N/A echo 1>&
2 "Python found: ${p}, installing bindings..." 636N/A # Pass install path via environment # Install the vboxweb service file for launchd if [[ -e
"${VBOXWEBSRV}" && -e
"${VBOXWEBSRV_TRG}" ]];
then echo "Installing vboxwebsrv launchd file to ${VBOXWEBSRV_TRG}" ${
CP}
"${VBOXWEBSRV}" "${VBOXWEBSRV_TRG}/"# Install any custom files if [ -d
"${DATAPATH}/.custom" ];
then echo 1>&
2 "Copy ${DATAPATH}/.custom to ${VBOX_INSTALL_PATH}...";
${
CPDIR}
"${DATAPATH}/.custom/" "${VBOX_INSTALL_PATH}/custom"# Register our file extensions echo "Register file extensions for $USER"