Shelfmark: CF Bypass options during install

This commit is contained in:
vhsdream
2026-01-26 12:44:54 -05:00
parent 05741195c2
commit e05e9e1a24
2 changed files with 93 additions and 26 deletions

View File

@@ -50,7 +50,10 @@ function update_script() {
cd /opt/shelfmark
$STD uv venv -c ./venv
$STD source ./venv/bin/activate
$STD uv pip install -r requirements-base.txt
$STD uv pip install -r ./requirements-base.txt
if [[ $(sed -n '/_BYPASS=/s/[^=]*=//p' /etc/shelfmark/.env) == "true" ]] && [[ $(sed -n '/BYPASSER=/s/[^=]*=//p' /etc/shelfmark/.env) == "false" ]]; then
$STD uv pip install -r ./requirements-shelfmark.txt
fi
mv /opt/start.sh.bak /opt/start.sh
msg_ok "Updated Shelfmark"