VirtualBox

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


Ignore:
Timestamp:
May 21, 2012 1:03:55 PM (13 years ago)
Author:
vboxsync
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Installer/linux/vboxweb-service.sh.in

    r41366 r41367  
    312312        # set authentication method + password hash
    313313        if [ -n "$VBOXWEB_AUTH_LIBRARY" ]; then
    314             vboxmanage setproperty websrvauthlibrary $VBOXWEB_AUTH_LIBRARY
     314            exec su - "$VBOXWEB_USER" -c "$vboxmanage setproperty websrvauthlibrary \"$VBOXWEB_AUTH_LIBRARY\""
    315315            if [ $? -ne 0 ]; then
    316316                fail_msg "Error $? setting webservice authentication library to $VBOXWEB_AUTH_LIBRARY"
     
    318318        fi
    319319        if [ -n "$VBOXWEB_AUTH_PWHASH" ]; then
    320             vboxmanage setextradata global VBoxAuthSimple/users/$VBOXWEB_USER $VBOXWEB_AUTH_PWHASH
     320            exec su - "$VBOXWEB_USER" -c "$vboxmanage setextradata global \"VBoxAuthSimple/users/$VBOXWEB_USER\" \"$VBOXWEB_AUTH_PWHASH\""
    321321            if [ $? -ne 0 ]; then
    322322                fail_msg "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