unattended-upgrades moved in apps list and as cli opt
This commit is contained in:
parent
e712e67e46
commit
92c42572f9
6 changed files with 18 additions and 12 deletions
|
@ -93,7 +93,7 @@ function showConfigMenu () {
|
||||||
;;
|
;;
|
||||||
"unattendedUpgrades")
|
"unattendedUpgrades")
|
||||||
clear
|
clear
|
||||||
installUnattendedUpgrades
|
installAppsFromList unattended-upgrades
|
||||||
pressKey
|
pressKey
|
||||||
;;
|
;;
|
||||||
"Unbound")
|
"Unbound")
|
||||||
|
|
|
@ -93,7 +93,7 @@ function showConfigMenu () {
|
||||||
;;
|
;;
|
||||||
"unattendedUpgrades")
|
"unattendedUpgrades")
|
||||||
clear
|
clear
|
||||||
installUnattendedUpgrades
|
installAppsFromList unattended-upgrades
|
||||||
pressKey
|
pressKey
|
||||||
;;
|
;;
|
||||||
"Unbound")
|
"Unbound")
|
||||||
|
|
|
@ -20,7 +20,8 @@
|
||||||
# List of packages available
|
# List of packages available
|
||||||
# fields : package name, package manager, category, unique ID for external functions
|
# 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
|
snap-store;snap;snap;snap-store
|
||||||
apt-transport-https;apt;init;apt-transport-https
|
apt-transport-https;apt;init;apt-transport-https
|
||||||
flatpak;apt;init;flatpak
|
flatpak;apt;init;flatpak
|
||||||
|
|
|
@ -20,7 +20,8 @@
|
||||||
# List of packages available
|
# List of packages available
|
||||||
# fields : package name, package manager, category, unique ID for external functions
|
# 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
|
snap-store;snap;snap;snap-store
|
||||||
apt-transport-https;apt;init;apt-transport-https
|
apt-transport-https;apt;init;apt-transport-https
|
||||||
flatpak;apt;init;flatpak
|
flatpak;apt;init;flatpak
|
||||||
|
|
|
@ -71,13 +71,6 @@ function enableHistoryTS () {
|
||||||
retCode $ret_code
|
retCode $ret_code
|
||||||
}
|
}
|
||||||
|
|
||||||
#
|
|
||||||
# install/enable auto install of security updates
|
|
||||||
#
|
|
||||||
function installUnattendedUpgrades () {
|
|
||||||
installPackage apt unattended-upgrades
|
|
||||||
}
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# display useful system/hardware informations
|
# display useful system/hardware informations
|
||||||
#
|
#
|
||||||
|
|
13
yggdrasil.sh
13
yggdrasil.sh
|
@ -67,7 +67,7 @@ echo "--[ Yggdrasil log ]--[ "$cDate" ]--[ "$cTime" ]-----------------------" >>
|
||||||
#
|
#
|
||||||
# arguments/options management with getopts
|
# 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
|
case "$option" in
|
||||||
a) # install all apps
|
a) # install all apps
|
||||||
if [ $ygginitCount = false ]; then
|
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"
|
msg "Unlock/Install SNAP + Store"
|
||||||
installAppsFromList snap
|
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)
|
u)
|
||||||
msg "Initializing"
|
msg "Initializing"
|
||||||
yggInit
|
yggInit
|
||||||
|
|
Loading…
Reference in a new issue