Commit ab4d2c28 authored by Thom Pol's avatar Thom Pol

Uncomment -updates line on Ubuntu (#25)

parent 40a777be
......@@ -114,5 +114,11 @@ maxretry = 3';
// Enable UnattendUpgrades to run every day
$unattendedupgrades = 'APT::Periodic::Update-Package-Lists "1";' . "\n" . 'APT::Periodic::Unattended-Upgrade "1";';
file_put_contents('/etc/apt/apt.conf.d/20auto-upgrades', $unattendedupgrades);
// Enable normal updates
$replacements = array(
'/^\/\/\s*"\$\{distro_id\}:\$\{distro_codename\}\-updates";/m' => ' "${distro_id}:${distro_codename}-updates";'
);
$result = $this->replaceContents('/etc/apt/apt.conf.d/50unattended-upgrades', $replacements);
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment