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