Remove reference to STD in update script; Add message at the end of installation that optional dependencies need to be installed using the update script

This commit is contained in:
Rémi Bédard-Couture 2024-04-19 12:02:05 -04:00
parent 0a88ca51c2
commit 45caab9b0a
2 changed files with 6 additions and 5 deletions

View file

@ -121,7 +121,7 @@ function update_script() {
;; ;;
"4") "4")
options+=( ldap ) options+=( ldap )
$STD apt-get install -qqy libldap2-dev libsasl2-dev apt-get install -qqy libldap2-dev libsasl2-dev
;; ;;
"5") "5")
options+=( oauth ) options+=( oauth )
@ -145,10 +145,10 @@ function update_script() {
if [ ! -z "$options" ] && [ ${#options[@]} -gt 0 ]; then if [ ! -z "$options" ] && [ ${#options[@]} -gt 0 ]; then
cps_options=$(IFS=, ; echo "${options[*]}") cps_options=$(IFS=, ; echo "${options[*]}")
echo $cps_options > /opt/calibre-web/options.txt echo $cps_options > /opt/calibre-web/options.txt
$STD pip install --upgrade calibreweb[$cps_options] pip install --upgrade calibreweb[$cps_options]
else else
rm /opt/calibre-web/options.txt 2> /dev/null rm /opt/calibre-web/options.txt 2> /dev/null
$STD pip install --upgrade calibreweb pip install --upgrade calibreweb
fi fi
systemctl start cps systemctl start cps
msg_ok "Updated $APP LXC" msg_ok "Updated $APP LXC"

View file

@ -59,5 +59,6 @@ $STD apt-get autoclean
msg_ok "Cleaned" msg_ok "Cleaned"
echo -e "Default login for Calibre-web: echo -e "Default login for Calibre-web:
user: ${BL}admin${CL} \n user: ${BL}admin${CL}
password: ${BL}admin123${CL} \n" password: ${BL}admin123${CL} \n"
echo -e "${YW}Run the update script inside the container to install calibre-web optional dependencies (such as ldap or kobo support).${CL}"