VirtualBox

Ignore:
Timestamp:
Jun 1, 2017 8:42:40 AM (8 years ago)
Author:
vboxsync
Message:

ValidationKit/testboxscript: during setup, do also warn aboutr unattended package updates on Ubuntu

Location:
trunk/src/VBox/ValidationKit/testboxscript
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ValidationKit/testboxscript/linux/setup-routines.sh

    r66800 r67192  
    125125    fi
    126126}
     127
     128##
     129# Test if unattended updates are disabled. See
     130#   http://ask.xmodulo.com/disable-automatic-updates-ubuntu.html
     131test_unattended_updates_disabled() {
     132    if grep "APT::Periodic::Unattended-Upgrade.*1" /etc/apt/apt.conf.d/* 2>/dev/null
     133        echo "Unattended updates enabled?"
     134        return 1
     135    fi
     136    if grep "APT::Periodic::Update-Package-List.*1" /etc/apt/apt.conf.d/* 2>/dev/null
     137        echo "Unattended package updates enabled?"
     138        return 1
     139    fi
     140}
  • trunk/src/VBox/ValidationKit/testboxscript/setup.sh

    r66805 r67192  
    313313}
    314314
     315##
     316# Test if unattended updates are disabled. See
     317#   http://ask.xmodulo.com/disable-automatic-updates-ubuntu.html
     318test_unattended_updates_disabled() {
     319    # This is a linux hook.
     320    return 0;
     321}
    315322
    316323##
     
    665672test_user;
    666673test_coredumps;
     674test_unattended_updates_disabled;
    667675
    668676grant_user_testboxscript_write_access;
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