From ca5b5277393655580103fb4e39747eec359cefc7 Mon Sep 17 00:00:00 2001 From: MickLesk Date: Mon, 24 Aug 2026 08:02:03 +0200 Subject: [PATCH] fireshare: source fireshare.env during update instead of hardcoding defaults --- ct/fireshare.sh | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/ct/fireshare.sh b/ct/fireshare.sh index f10be013b..b6e9d67d4 100644 --- a/ct/fireshare.sh +++ b/ct/fireshare.sh @@ -57,11 +57,9 @@ function update_script() { $STD .venv/bin/python -m pip install --upgrade --break-system-packages pip $STD .venv/bin/python -m pip install --no-cache-dir --break-system-packages --ignore-installed app/server cp .venv/bin/fireshare /usr/local/bin/fireshare - export FLASK_APP="/opt/fireshare/app/server/fireshare:create_app()" - export DATA_DIRECTORY=/opt/fireshare-data - export IMAGE_DIRECTORY=/opt/fireshare-images - export VIDEO_DIRECTORY=/opt/fireshare-videos - export PROCESSED_DIRECTORY=/opt/fireshare-processed + set -a + source /opt/fireshare/fireshare.env + set +a $STD uv run flask db upgrade cd /opt/fireshare/app/client $STD npm install