[n/calibre-web] optional-requirements

This commit is contained in:
Gwenhael Le Moine 2022-07-11 15:39:38 +02:00
parent 4e2417e206
commit cfca0ccada
No known key found for this signature in database
GPG key ID: FDFE3669426707A7

View file

@ -3,10 +3,10 @@
# variables
GITHUB_REPO=janeczku/calibre-web
VERSION=${VERSION:-latest}
BUILD=${BUILD:-2}
RUNNING_USER=${RUNNING_USER:-gwh}
RUNNING_GROUP=${RUNNING_GROUP:-users}
BUILD=${BUILD:-1}
TAG=gwh
TMP=/tmp/$TAG
@ -58,7 +58,7 @@ sed -i "s|RUNNING_USER|$RUNNING_USER|" $PKG/etc/rc.d/rc.$PRGNAM
# change default password
NEW_DEFAULT_PASSWORD=$(< /dev/urandom tr -dc _A-Z-a-z-0-9 | head -c${1:-32};echo;)
sed -i "s|admin123|$NEW_DEFAULT_PASSWORD|g" cps/*
pip3 install --target vendor -r requirements.txt
pip3 install --target vendor -r requirements.txt -r optional-requirements.txt
# correction
cd $PKG