mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-09-25 05:37:15 +02:00
fireshare: source fireshare.env during update instead of hardcoding defaults
This commit is contained in:
+3
-5
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user