diff --git a/menus_functions_ub1804.sh b/menus_functions_ub1804.sh index d43dfac..70cffd9 100644 --- a/menus_functions_ub1804.sh +++ b/menus_functions_ub1804.sh @@ -93,7 +93,7 @@ function showConfigMenu () { ;; "unattendedUpgrades") clear - installUnattendedUpgrades + installAppsFromList unattended-upgrades pressKey ;; "Unbound") diff --git a/menus_functions_ub2004.sh b/menus_functions_ub2004.sh index 4f0524d..4b096bb 100644 --- a/menus_functions_ub2004.sh +++ b/menus_functions_ub2004.sh @@ -93,7 +93,7 @@ function showConfigMenu () { ;; "unattendedUpgrades") clear - installUnattendedUpgrades + installAppsFromList unattended-upgrades pressKey ;; "Unbound") diff --git a/repo_functions_ub1804.sh b/repo_functions_ub1804.sh index 139c8f5..7e18c00 100644 --- a/repo_functions_ub1804.sh +++ b/repo_functions_ub1804.sh @@ -20,7 +20,8 @@ # List of packages available # fields : package name, package manager, category, unique ID for external functions # -Apps="snapd;apt;snap;snapd +Apps="unattended-upgrades;apt;unattended-upgrades;unattended-upgrades +snapd;apt;snap;snapd snap-store;snap;snap;snap-store apt-transport-https;apt;init;apt-transport-https flatpak;apt;init;flatpak diff --git a/repo_functions_ub2004.sh b/repo_functions_ub2004.sh index 61893e1..76b9146 100644 --- a/repo_functions_ub2004.sh +++ b/repo_functions_ub2004.sh @@ -20,7 +20,8 @@ # List of packages available # fields : package name, package manager, category, unique ID for external functions # -Apps="snapd;apt;snap;snapd +Apps="unattended-upgrades;apt;unattended-upgrades;unattended-upgrades +snapd;apt;snap;snapd snap-store;snap;snap;snap-store apt-transport-https;apt;init;apt-transport-https flatpak;apt;init;flatpak diff --git a/tools_functions.sh b/tools_functions.sh index 52afd4c..bce53e7 100644 --- a/tools_functions.sh +++ b/tools_functions.sh @@ -71,13 +71,6 @@ function enableHistoryTS () { retCode $ret_code } -# -# install/enable auto install of security updates -# -function installUnattendedUpgrades () { - installPackage apt unattended-upgrades -} - # # display useful system/hardware informations # diff --git a/yggdrasil.sh b/yggdrasil.sh index 563311d..98c649e 100755 --- a/yggdrasil.sh +++ b/yggdrasil.sh @@ -67,7 +67,7 @@ echo "--[ Yggdrasil log ]--[ "$cDate" ]--[ "$cTime" ]-----------------------" >> # # arguments/options management with getopts -while getopts ":h,v,f,c,u,a,d,q,s,t,w,g,k,p" option; do +while getopts ":h,v,f,c,u,a,d,q,s,t,w,g,j,k,p" option; do case "$option" in a) # install all apps if [ $ygginitCount = false ]; then @@ -249,6 +249,17 @@ while getopts ":h,v,f,c,u,a,d,q,s,t,w,g,k,p" option; do msg "Unlock/Install SNAP + Store" installAppsFromList snap ;; + j) # unattended-upgrades + if [ $ygginitCount = false ]; then + msg "Initializing" + yggInit + msg "Updating the system" + updateSystem + ygginitCount=true + fi + msg "Install/Enable unattended-upgrades" + installAppsFromList unattended-upgrades + ;; u) msg "Initializing" yggInit