unattended-upgrades moved in apps list and as cli opt

This commit is contained in:
Francois B. (Makoto) 2020-07-04 19:31:30 +02:00
parent e712e67e46
commit 92c42572f9
6 changed files with 18 additions and 12 deletions

View file

@ -93,7 +93,7 @@ function showConfigMenu () {
;;
"unattendedUpgrades")
clear
installUnattendedUpgrades
installAppsFromList unattended-upgrades
pressKey
;;
"Unbound")

View file

@ -93,7 +93,7 @@ function showConfigMenu () {
;;
"unattendedUpgrades")
clear
installUnattendedUpgrades
installAppsFromList unattended-upgrades
pressKey
;;
"Unbound")

View file

@ -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

View file

@ -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

View file

@ -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
#

View file

@ -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