fireshare: source fireshare.env during update instead of hardcoding defaults

This commit is contained in:
MickLesk
2026-08-24 08:02:03 +02:00
parent c1929dc2a9
commit ca5b527739
+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 --upgrade --break-system-packages pip
$STD .venv/bin/python -m pip install --no-cache-dir --break-system-packages --ignore-installed app/server $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 cp .venv/bin/fireshare /usr/local/bin/fireshare
export FLASK_APP="/opt/fireshare/app/server/fireshare:create_app()" set -a
export DATA_DIRECTORY=/opt/fireshare-data source /opt/fireshare/fireshare.env
export IMAGE_DIRECTORY=/opt/fireshare-images set +a
export VIDEO_DIRECTORY=/opt/fireshare-videos
export PROCESSED_DIRECTORY=/opt/fireshare-processed
$STD uv run flask db upgrade $STD uv run flask db upgrade
cd /opt/fireshare/app/client cd /opt/fireshare/app/client
$STD npm install $STD npm install