Wizarr: quiesce output; ensure uv installed

This commit is contained in:
vhsdream 2025-06-05 15:30:21 -04:00
parent 66555486e0
commit 196e9d1365
2 changed files with 4 additions and 3 deletions

View File

@ -37,7 +37,7 @@ function update_script() {
msg_info "Creating Backup" msg_info "Creating Backup"
BACKUP_FILE="/opt/wizarr_backup_$(date +%F).tar.gz" BACKUP_FILE="/opt/wizarr_backup_$(date +%F).tar.gz"
$STD tar -czf "$BACKUP_FILE" /opt/wizarr/{.env,start.sh} /opt/wizarr/database/* $STD tar -czf "$BACKUP_FILE" /opt/wizarr/{.env,start.sh} /opt/wizarr/database/ &>/dev/null
msg_ok "Backup Created" msg_ok "Backup Created"
msg_info "Updating $APP to v${RELEASE}" msg_info "Updating $APP to v${RELEASE}"
@ -46,8 +46,9 @@ function update_script() {
unzip -q /tmp/"$RELEASE".zip unzip -q /tmp/"$RELEASE".zip
mv wizarr-${RELEASE}/ /opt/wizarr mv wizarr-${RELEASE}/ /opt/wizarr
cd /opt/wizarr cd /opt/wizarr
setup_uv
uv -q sync --locked uv -q sync --locked
uv -q run pybabel compile -d app/translations $STD uv -q run pybabel compile -d app/translations
$STD npm --prefix app/static install $STD npm --prefix app/static install
mkdir -p ./.cache mkdir -p ./.cache
uv -q run flask db upgrade uv -q run flask db upgrade

View File

@ -31,7 +31,7 @@ unzip -q /tmp/"$RELEASE".zip
mv wizarr-${RELEASE}/ /opt/wizarr mv wizarr-${RELEASE}/ /opt/wizarr
cd /opt/wizarr cd /opt/wizarr
uv -q sync --locked uv -q sync --locked
uv -q run pybabel compile -d app/translations $STD uv -q run pybabel compile -d app/translations
$STD npm --prefix app/static install $STD npm --prefix app/static install
mkdir -p ./.cache mkdir -p ./.cache
uv -q run flask db upgrade uv -q run flask db upgrade