VirtualBox

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


Ignore:
Timestamp:
Jul 9, 2015 7:27:01 AM (10 years ago)
Author:
vboxsync
Message:

Additions/installer/linux: log to the log file, not to standard error.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Installer/linux/run-inst.sh

    r56842 r56887  
    150150    # system
    151151    for i in $UNINSTALL_SCRIPTS; do
    152         stop_init_script "$i"
     152        stop_init_script "$i" 2>> "${LOGFILE}"
    153153        test -z "$NO_CLEANUP" && test -x "./$i" && "./$i" cleanup 1>&2 2>> "$LOGFILE"
    154         delrunlevel "$i"
    155         remove_init_script "$i"
     154        delrunlevel "$i" 2>> "${LOGFILE}"
     155        remove_init_script "$i" 2>> "${LOGFILE}"
    156156    done
    157157    for i in "/opt/$PACKAGE-"*/init/*; do
     
    421421for i in "$INSTALLATION_DIR/init/"*; do
    422422  if test -r "$i"; then
    423     install_init_script "$i" "`basename "$i"`"
    424     addrunlevel "`basename "$i"`"
    425     test -n "$DO_SETUP" && grep -q '^# *setup_script *$' "${i}" && "${i}" setup 1>&2
    426     start_init_script "`basename "$i"`"
     423    install_init_script "$i" "`basename "$i"`" 2>> "${LOGFILE}"
     424    addrunlevel "`basename "$i"`" 2>> "${LOGFILE}"
     425    test -n "$DO_SETUP" && grep -q '^# *setup_script *$' "${i}" && "${i}" setup 1>&2 2>> "${LOGFILE}"
     426    start_init_script "`basename "$i"`" 2>> "${LOGFILE}"
    427427  fi
    428428done
     
    462462for i in "$INSTALLATION_DIR/init/"*; do
    463463    if test -r "\$i"; then
    464         stop_init_script "\`basename "\$i"\`"
     464        stop_init_script "\`basename "\$i"\`" 2>> "${LOGFILE}"
    465465        test -z "\${NO_CLEANUP}" && grep -q '^# *cleanup_script *$' "\${i}" && "\${i}" cleanup 2>> "\$LOGFILE"
    466         delrunlevel "\`basename "\$i"\`"
    467         remove_init_script "\`basename "\$i"\`"
     466        delrunlevel "\`basename "\$i"\`" 2>> "${LOGFILE}"
     467        remove_init_script "\`basename "\$i"\`" 2>> "${LOGFILE}"
    468468    fi
    469469done
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