Skip to content

Commit 12211d3

Browse files
committed
Release 3.3.5 - See CHANGELOG.md
1 parent 83693d3 commit 12211d3

File tree

2 files changed

+14
-7
lines changed

2 files changed

+14
-7
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
## 3.3.5 2022-06-08 <dave at tiredofit dot ca>
2+
3+
### Changed
4+
- Fix DB Port parameter not being able to be input in restore script
5+
- Fix MongoDB restore questionnaire
6+
7+
18
## 3.3.4 2022-06-03 <rozdzynski@github>
29

310
### Fixed

install/usr/local/bin/restore

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ The image will also allow you to use environment variables or Docker secrets use
5555

5656
The script can also be executed skipping the interactive mode by using the following syntax/
5757

58-
$(basename $0) <filename> <db_type> <db_hostname> <db_name> <db_user> <db_pass> <db_port>
58+
$(basename "$0") <filename> <db_type> <db_hostname> <db_name> <db_user> <db_pass> <db_port>
5959

6060
If you only enter some of the arguments you will be prompted to fill them in.
6161

@@ -70,15 +70,15 @@ EOF
7070
interactive_mode=true
7171
;;
7272
* )
73-
interactive_mode=false
73+
interactive_mode=false
7474
;;
7575
esac
7676
fi
7777

7878
get_filename() {
7979
COLUMNS=12
8080
prompt="Please select a file to restore:"
81-
options=( $(find ${DB_DUMP_TARGET} -type f -maxdepth 1 -not -name '*.md5' -not -name '*.sha1' -print0 | xargs -0) )
81+
options=( $(find "${DB_DUMP_TARGET}" -type f -maxdepth 1 -not -name '*.md5' -not -name '*.sha1' -print0 | xargs -0) )
8282
PS3="$prompt "
8383
select opt in "${options[@]}" "Custom" "Quit" ; do
8484
if (( REPLY == 2 + ${#options[@]} )) ; then
@@ -641,7 +641,7 @@ EOF
641641
2 )
642642
while true; do
643643
read -p "$(echo -e ${clg}** ${cdgy}Enter Value \(${cwh}C${cdgy}\) \| \(${cwh}E${cdgy}\) : ${cwh}${coff}) " q_dbport_menu
644-
case "${q_dbname_menu,,}" in
644+
case "${q_port_menu,,}" in
645645
c* )
646646
counter=1
647647
q_dbport=" "
@@ -944,12 +944,12 @@ case "${r_dbtype}" in
944944
mongo_compression="--gzip"
945945
fi
946946
if [ -n "${r_dbuser}" ] ; then
947-
mongo_user="-u ${r_dbuser}"
947+
mongo_user="-u=${r_dbuser}"
948948
fi
949949
if [ -n "${r_dbpass}" ] ; then
950-
mongo_pass="-u ${r_dbpass}"
950+
mongo_pass="-p=${r_dbpass}"
951951
fi
952-
mongorestore ${mongo_compression} -d ${r_dbname} -h ${r_dbhost} --port ${r_dbport} ${mongo_user} ${mongo_pass} --archive=${r_filename}
952+
mongorestore ${mongo_compression} -d=${r_dbname} -h=${r_dbhost} --port=${r_dbport} ${mongo_user} ${mongo_pass} --archive=${r_filename}
953953
exit_code=$?
954954
;;
955955
* )

0 commit comments

Comments
 (0)