VirtualBox

Changeset 41367 in vbox for trunk/src/VBox/Installer/solaris


Ignore:
Timestamp:
May 21, 2012 1:03:55 PM (13 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
78059
Message:

Linux/Solaris installers: Use exec, quoting (untested).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Installer/solaris/smf-vboxwebsrv.sh

    r41365 r41367  
    102102        # Set authentication method + password hash
    103103        if [ -n "$VW_AUTH_LIBRARY" ]; then
    104             exec /opt/VirtualBox/VBoxManage setproperty websrvauthlibrary $VW_AUTH_LIBRARY
     104            exec su - "$VW_USER" -c "/opt/VirtualBox/VBoxManage setproperty websrvauthlibrary \"$VW_AUTH_LIBRARY\""
    105105            if [ $? != 0 ]; then
    106106                echo "Error $? setting webservice authentication library to $VW_AUTH_LIBRARY"
     
    108108        fi
    109109        if [ -n "$VW_AUTH_PWHASH" ]; then
    110             exec /opt/VirtualBox/VBoxManage setextradata global VBoxAuthSimple/users/$VW_USER $VW_AUTH_PWHASH
     110            exec su - "$VW_USER" -c "/opt/VirtualBox/VBoxManage setextradata global \"VBoxAuthSimple/users/$VW_USER\" \"$VW_AUTH_PWHASH\""
    111111            if [ $? != 0 ]; then
    112112                echo "Error $? setting webservice password hash"
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