From 9f44f6cd28bf6e58018094d6831fe60141a3918e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20B=C3=A9dard-Couture?= Date: Fri, 19 Apr 2024 12:11:12 -0400 Subject: [PATCH] Fix existing options parsing (removed hardcoded variable assignment); Remove carriage return after default login message --- ct/calibre-web.sh | 2 -- install/calibre-web-install.sh | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/ct/calibre-web.sh b/ct/calibre-web.sh index 41690614..f698ba4f 100644 --- a/ct/calibre-web.sh +++ b/ct/calibre-web.sh @@ -79,7 +79,6 @@ function update_script() { cps_options="$(cat /opt/calibre-web/options.txt)" IFS=',' read -ra ADDR <<< "$cps_options" for i in "${ADDR[@]}"; do - # process "$i" if [ $i == "gdrive" ]; then line=0 elif [ $i == "gmail" ]; then @@ -97,7 +96,6 @@ function update_script() { elif [ $i == "kobo" ]; then line=7 fi - line=3 array_index=$(( 3*line + 2 )) menu_array[$array_index]=ON done diff --git a/install/calibre-web-install.sh b/install/calibre-web-install.sh index 6a21c831..1e2be2f6 100644 --- a/install/calibre-web-install.sh +++ b/install/calibre-web-install.sh @@ -60,5 +60,5 @@ msg_ok "Cleaned" echo -e "Default login for Calibre-web: user: ${BL}admin${CL} - password: ${BL}admin123${CL} \n" + password: ${BL}admin123${CL}" echo -e "${YW}Run the update script inside the container to install calibre-web optional dependencies (such as ldap or kobo support).${CL}" \ No newline at end of file