changed sed command to recreate file with echo

This commit is contained in:
2023-08-26 09:06:21 -05:00
parent 9edc5dcc8a
commit e6862fcc4e

View File

@@ -12,9 +12,9 @@ sed -i 's@//Unattended-Upgrade::Remove-Unused-Dependencies "false";@Unattended-U
dpkg-reconfigure --priority=high unattended-upgrades
sed -i 's@APT::Periodic::Update-Package-Lists "0";@APT::Periodic::Update-Package-Lists "1";@g' /etc/apt/apt.conf.d/20auto-upgrades
echo "APT::Periodic::Update-Package-Lists "1"" > /etc/apt/apt.conf.d/20auto-upgrades
sed -i 's@APT::Periodic::Unattended-Upgrade "0";@APT::Periodic::Unattended-Upgrade "1";@g' /etc/apt/apt.conf.d/20auto-upgrades
echo "APT::Periodic::Unattended-Upgrade "1"" >> /etc/apt/apt.conf.d/20auto-upgrades
systemctl enable unattended-upgrades