This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# disable automatic upgrades to avoid error on start: "Could not get lock /var/lib/dpkg/lock" | |
cat << EOF > 20auto-upgrades | |
// Do "apt-get update" automatically every n-days (0=disable) | |
APT::Periodic::Update-Package-Lists "0"; | |
// Run the "unattended-upgrade" security upgrade script | |
// every n-days (0=disabled) | |
// Requires the package "unattended-upgrades" and will write | |
// a log in /var/log/unattended-upgrades | |
APT::Periodic::Unattended-Upgrade "0"; |