Titles
This commit is contained in:
parent
882f4033c9
commit
85eb4a17a1
@ -2,7 +2,9 @@
|
|||||||
|
|
||||||
|
|
||||||
backup(){
|
backup(){
|
||||||
echo_backup+=("\nNumber of backups was set to $number_of_backups")
|
echo_backup+=("\nBackup Output")
|
||||||
|
echo_backup+=("--------------")
|
||||||
|
echo_backup+=("Number of backups was set to $number_of_backups")
|
||||||
date=$(date '+%Y_%m_%d_%H_%M_%S')
|
date=$(date '+%Y_%m_%d_%H_%M_%S')
|
||||||
[[ "$verbose" == "true" ]] && cli -c 'app kubernetes backup_chart_releases backup_name=''"'HeavyScript_"$date"'"' &> /dev/null && echo_backup+=(HeavyScript_"$date")
|
[[ "$verbose" == "true" ]] && cli -c 'app kubernetes backup_chart_releases backup_name=''"'HeavyScript_"$date"'"' &> /dev/null && echo_backup+=(HeavyScript_"$date")
|
||||||
[[ -z "$verbose" ]] && echo_backup+=("\nNew Backup Name:") && cli -c 'app kubernetes backup_chart_releases backup_name=''"'HeavyScript_"$date"'"' | tail -n 1 &> /dev/null && echo_backup+=(HeavyScript_"$date")
|
[[ -z "$verbose" ]] && echo_backup+=("\nNew Backup Name:") && cli -c 'app kubernetes backup_chart_releases backup_name=''"'HeavyScript_"$date"'"' | tail -n 1 &> /dev/null && echo_backup+=(HeavyScript_"$date")
|
||||||
|
@ -130,6 +130,7 @@ menu(){
|
|||||||
if [[ $current_selection == 0 ]]; then
|
if [[ $current_selection == 0 ]]; then
|
||||||
clear -x
|
clear -x
|
||||||
echo "Running \"bash heavy_script.sh ${update_selection[*]}\""
|
echo "Running \"bash heavy_script.sh ${update_selection[*]}\""
|
||||||
|
echo
|
||||||
exec bash "$script_name" "${update_selection[@]}"
|
exec bash "$script_name" "${update_selection[@]}"
|
||||||
exit
|
exit
|
||||||
elif [[ $current_selection == 1 ]]; then
|
elif [[ $current_selection == 1 ]]; then
|
||||||
|
@ -2,6 +2,8 @@
|
|||||||
|
|
||||||
|
|
||||||
sync(){
|
sync(){
|
||||||
|
echo_sync+=("\nSync Output")
|
||||||
|
echo_sync+=("-----------")
|
||||||
cli -c 'app catalog sync_all' &> /dev/null && echo_sync+=("Catalog sync complete")
|
cli -c 'app catalog sync_all' &> /dev/null && echo_sync+=("Catalog sync complete")
|
||||||
|
|
||||||
#Dump the echo_array, ensures all output is in a neat order.
|
#Dump the echo_array, ensures all output is in a neat order.
|
||||||
@ -13,7 +15,10 @@ done
|
|||||||
export -f sync
|
export -f sync
|
||||||
|
|
||||||
prune(){
|
prune(){
|
||||||
echo -e "\nPruning Docker Images" && docker image prune -af | grep "^Total" || echo "Failed to Prune Docker Images"
|
echo -e "\nDocker Prune Output"
|
||||||
|
echo "-------------------"
|
||||||
|
echo "Pruned Docker Images"
|
||||||
|
docker image prune -af | grep "^Total" || echo "Failed to Prune Docker Images"
|
||||||
}
|
}
|
||||||
export -f prune
|
export -f prune
|
||||||
|
|
||||||
|
@ -3,6 +3,8 @@
|
|||||||
|
|
||||||
commander(){
|
commander(){
|
||||||
mapfile -t array < <(cli -m csv -c 'app chart_release query name,update_available,human_version,human_latest_version,container_images_update_available,status' | tr -d " \t\r" | grep -E ",true($|,)" | sort)
|
mapfile -t array < <(cli -m csv -c 'app chart_release query name,update_available,human_version,human_latest_version,container_images_update_available,status' | tr -d " \t\r" | grep -E ",true($|,)" | sort)
|
||||||
|
echo "Aplication Update Output"
|
||||||
|
echo "------------------------"
|
||||||
[[ -z $array ]] && echo -e "\nThere are no updates available" && return 0 || echo -e "\n${#array[@]} update(s) available"
|
[[ -z $array ]] && echo -e "\nThere are no updates available" && return 0 || echo -e "\n${#array[@]} update(s) available"
|
||||||
[[ -z $timeout ]] && echo -e "\nDefault Timeout: 500" && timeout=500 || echo -e "\nCustom Timeout: $timeout"
|
[[ -z $timeout ]] && echo -e "\nDefault Timeout: 500" && timeout=500 || echo -e "\nCustom Timeout: $timeout"
|
||||||
[[ "$timeout" -le 120 ]] && echo "Warning: Your timeout is set low and may lead to premature rollbacks or skips"
|
[[ "$timeout" -le 120 ]] && echo "Warning: Your timeout is set low and may lead to premature rollbacks or skips"
|
||||||
|
Loading…
Reference in New Issue
Block a user