VirtualBox

Changeset 77077 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Jan 31, 2019 2:38:49 PM (6 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
128530
Message:

Additions/linux/installer: correctly detect the Oracle Linux RPMs.
bugref:3809: Linux installer maintenance
Since the Oracle Linux RPMs use the normal Additions installer as a basis,
the installer failed to detect them as a different type of installation.
Fortunately they removed the uninstall script, causing this installer to fail
early. This change adds script to detect them via the missing uninstall
script.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/linux/installer/install.sh.in

    r76553 r77077  
    352352INSTALL_DIR=""
    353353uninstalled=0
    354 test -r "$CONFIG_DIR/$CONFIG" &&
    355     eval `grep ^INSTALL_DIR= "$CONFIG_DIR/$CONFIG"` 2>/dev/null &&
    356     eval `grep ^UNINSTALLER= "$CONFIG_DIR/$CONFIG"` 2>/dev/null
    357 if test -n "$INSTALL_DIR" -a -x "$INSTALL_DIR/$UNINSTALLER"; then
     354test -r "$CONFIG_DIR/$CONFIG" && . "$CONFIG_DIR/$CONFIG"
     355if test -n "$INSTALL_DIR" && test -n "$UNINSTALLER" &&
     356    test -x "$INSTALL_DIR/$UNINSTALLER"; then
    358357  "$INSTALL_DIR/$UNINSTALLER" $NO_CLEANUP 1>&2 ||
    359358    abort "Failed to remove existing installation.  Aborting..."
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette