Fix existing options parsing (removed hardcoded variable assignment); Remove carriage return after default login message

pull/2812/head
Rémi Bédard-Couture 1 year ago
parent 45caab9b0a
commit 9f44f6cd28
  1. 2
      ct/calibre-web.sh
  2. 2
      install/calibre-web-install.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

@ -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}"
Loading…
Cancel
Save