File tree Expand file tree Collapse file tree 2 files changed +35
-1
lines changed
Expand file tree Collapse file tree 2 files changed +35
-1
lines changed Original file line number Diff line number Diff line change 1+ ## 4.0.3 2023-11-09 <dave at tiredofit dot ca >
2+
3+ ### Changed
4+ - Resolve issue with _MYSQL_TLS_CERT_FILE not being read
5+
6+
17## 4.0.2 2023-11-09 <dave at tiredofit dot ca >
28
39 ### Changed
Original file line number Diff line number Diff line change 7474 esac
7575fi
7676
77+
7778control_c() {
78- # if [ -f "${restore_vars}" ] ; then rm -rf "${restore_vars}" ; fi
79+ if [ -f "${restore_vars}" ] ; then rm -rf "${restore_vars}" ; fi
7980 print_warn "User aborted"
8081 exit
8182}
8283
84+ get_filename() {
85+ COLUMNS=12
86+ prompt="Please select a file to restore:"
87+ options=( $(find "${DEFAULT_FILESYSTEM_PATH}" -type f -maxdepth 2 -not -name '*.md5' -not -name '*.sha1' -print0 | sort -z | xargs -0) )
88+ PS3="$prompt "
89+ select opt in "${options[@]}" "Custom" "Quit" ; do
90+ if (( REPLY == 2 + ${#options[@]} )) ; then
91+ echo "Bye!"
92+ exit 2
93+ elif (( REPLY == 1 + ${#options[@]} )) ; then
94+ while [ ! -f "${opt}" ] ; do
95+ read -p "What path and filename to restore: " opt
96+ if [ ! -f "${opt}" ] ; then
97+ print_error "File not found. Please retry.."
98+ fi
99+ done
100+ break
101+ elif (( REPLY > 0 && REPLY <= ${#options[@]} )) ; then
102+ break
103+ else
104+ echo "Invalid option. Try another one."
105+ fi
106+ done
107+ COLUMNS=$oldcolumns
108+ r_filename=${opt}
109+ }
110+
83111get_dbhost() {
84112 p_dbhost=$(basename -- "${r_filename}" | cut -d _ -f 3)
85113 if [ -n "${p_dbhost}" ]; then
You can’t perform that action at this time.
0 commit comments