fireshare: source fireshare.env during update instead of hardcoding defaults (#16706)

This commit is contained in:
CanbiZ (MickLesk)
2026-08-24 14:06:30 +02:00
committed by GitHub
parent 8f407870b9
commit 4c6ccdde35
+3 -5
View File
@@ -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