This commit is contained in:
Heavybullets8 2022-07-26 13:29:30 -06:00
parent 5f31a13493
commit 666c1e8168
2 changed files with 23 additions and 12 deletions

View File

@ -38,17 +38,29 @@ menu(){
deleteBackup="true" deleteBackup="true"
;; ;;
6) 6)
echo "" script=$(readlink -f "$0")
echo "1 Update Apps Excluding likely breaking major changes" script_path=$(dirname "$script")
echo "2 Update Apps Including likely breaking major changes" script_name="heavy_script.sh"
read -rt 600 -p "Please select an option by number: " updateType cd "$script_path" || exit
if [[ "$updateType" == "1" ]]; then clear -x
update_apps="true" echo "Choose your update options"
elif [[ "$updateType" == "2" ]]; then echo
update_all_apps="true" echo "-U | Update all applications, ignores versions"
else echo "-u | Update all applications, does not update Major releases"
echo "INVALID ENTRY" && exit 1 echo "-b | Back-up your ix-applications dataset, specify a number after -b"
fi echo "-i | Add application to ignore list, one by one, see example below."
echo "-r | Roll-back applications if they fail to update"
echo "-S | Shutdown applications prior to updating"
echo "-v | verbose output"
echo "-t | Set a custom timeout in seconds when checking if either an App or Mountpoint correctly Started, Stopped or (un)Mounted. Defaults to 500 seconds"
echo "-s | sync catalog"
echo "-p | Prune unused/old docker images"
echo
echo "Example: -u 3 -b 14 -rSvsp -i nextcloud"
read -rt 600 -p "Please type the flags you wish, with options above: " update_selection
exec bash "$script_name" "$update_selection"
;; ;;
*) *)
echo "Unknown option" && exit 1 echo "Unknown option" && exit 1

View File

@ -43,7 +43,6 @@ echo "-U | Update all applications, ignores versions"
echo "-u | Update all applications, does not update Major releases" echo "-u | Update all applications, does not update Major releases"
echo "-b | Back-up your ix-applications dataset, specify a number after -b" echo "-b | Back-up your ix-applications dataset, specify a number after -b"
echo "-i | Add application to ignore list, one by one, see example below." echo "-i | Add application to ignore list, one by one, see example below."
echo "-R | THIS OPTION WILL DEPRICATE SOON, USE \"-r\" instead. Roll-back applications if they fail to update"
echo "-r | Roll-back applications if they fail to update" echo "-r | Roll-back applications if they fail to update"
echo "-S | Shutdown applications prior to updating" echo "-S | Shutdown applications prior to updating"
echo "-v | verbose output" echo "-v | verbose output"