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