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

This commit is contained in:
Rémi Bédard-Couture 2024-04-19 12:11:12 -04:00
parent 45caab9b0a
commit 9f44f6cd28
2 changed files with 1 additions and 3 deletions

View file

@ -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

View file

@ -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}"