VirtualBox

Ignore:
Timestamp:
Dec 6, 2018 1:05:12 PM (6 years ago)
Author:
vboxsync
Message:

Installer/darwin/VirtualBox_Uninstall.tool: Ask the user whether to uninstall the FUSE for macOS core package when detected and do the uninstallation when instructed to do so

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Installer/darwin/DiskImage/VirtualBox_Uninstall.tool

    r73855 r76014  
    200200fi
    201201
     202my_fuse_macos_core_uninstall=0
     203if test "$my_default_prompt" != "Yes" -a -f "/Library/Filesystems/osxfuse.fs/Contents/Resources/uninstall_osxfuse.app/Contents/Resources/Scripts/uninstall_osxfuse.sh"; then
     204    echo "VirtualBox detected the FUSE for macOS core package which might've been installed"
     205    echo "by VirtualBox itself for the vboximg-mount utility. Do you wish to uninstall"
     206    echo "the FUSE for macOS core package (Yes/No)?"
     207    read my_answer
     208    if test "$my_answer" == "Yes"  -o  "$my_answer" == "YES"  -o  "$my_answer" == "yes"; then
     209        my_fuse_macos_core_uninstall=1;
     210    fi
     211    echo ""
     212fi
     213
    202214#
    203215# Unregister has to be done before the files are removed.
     
    229241        exit 1;
    230242    fi
     243fi
     244
     245if test "$my_fuse_macos_core_uninstall" != 0; then
     246    echo "Uninstalling the FUSE for macOS core package"
     247    /usr/bin/sudo -p "Please enter %u's password:" /Library/Filesystems/osxfuse.fs/Contents/Resources/uninstall_osxfuse.app/Contents/Resources/Scripts/uninstall_osxfuse.sh
    231248fi
    232249
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