New Docker Update Menu (#1218)

pull/1220/head
nicedevil007 2 years ago committed by GitHub
parent 36cee5fe90
commit febcc52219
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 26
      ct/alpine-docker.sh

@ -51,17 +51,23 @@ function default_settings() {
echo_default echo_default
} }
function update_script() { while true; do
UPD=$(whiptail --title "SUPPORT" --radiolist --cancel-button Exit-Script "Spacebar = Select" 11 58 1 \ CHOICE=$(whiptail --title "SUPPORT" --menu "Select option" 11 58 1 \
"1" "Check for Docker Updates" ON \ "1" "Check for Docker Updates" 3>&2 2>&1 1>&3
3>&1 1>&2 2>&3) )
exit_status=$?
header_info if [ $exit_status == 1 ] ; then
if [ "$UPD" == "1" ]; then clear
apk update && apk upgrade exit-script
exit
fi fi
} header_info
case $CHOICE in
1 )
apk update && apk upgrade
exit
;;
esac
done
start start
build_container build_container

Loading…
Cancel
Save