From 5301d36b9a1776853b9175c8b57d0ccccd44c6b4 Mon Sep 17 00:00:00 2001 From: ddavis32 Date: Tue, 11 Feb 2020 22:59:59 -0500 Subject: [PATCH] Delete unused function The function apt_add_repository_to_unattended_upgrades is defined but never called anywhere. It appears that automatic apt updates are handled in system.sh where the file /etc/apt/apt.conf.d/02periodic is created. --- setup/functions.sh | 9 --------- 1 file changed, 9 deletions(-) diff --git a/setup/functions.sh b/setup/functions.sh index 3bb96b7a..b36d14bc 100644 --- a/setup/functions.sh +++ b/setup/functions.sh @@ -57,15 +57,6 @@ function apt_install { apt_get_quiet install $PACKAGES } -function apt_add_repository_to_unattended_upgrades { - if [ -f /etc/apt/apt.conf.d/50unattended-upgrades ]; then - if ! grep -q "$1" /etc/apt/apt.conf.d/50unattended-upgrades; then - sed -i "/Allowed-Origins/a \ - \"$1\";" /etc/apt/apt.conf.d/50unattended-upgrades - fi - fi -} - function get_default_hostname { # Guess the machine's hostname. It should be a fully qualified # domain name suitable for DNS. None of these calls may provide