mirror of
				https://github.com/community-scripts/ProxmoxVE.git
				synced 2025-11-04 02:12:49 +00:00 
			
		
		
		
	MediaManager: fix BASE_PATH error preventing main page load (#8821)
This commit is contained in:
		@@ -1,4 +1,4 @@
 | 
			
		||||
#!/usr/bin/env bash
 | 
			
		||||
#!/usr/bin/env bash
 | 
			
		||||
source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/build.func)
 | 
			
		||||
# Copyright (c) 2021-2025 community-scripts ORG
 | 
			
		||||
# Author: vhsdream
 | 
			
		||||
@@ -42,14 +42,12 @@ function update_script() {
 | 
			
		||||
    export FRONTEND_FILES_DIR="${MM_DIR}/web/build"
 | 
			
		||||
    export BASE_PATH=""
 | 
			
		||||
    export PUBLIC_VERSION=""
 | 
			
		||||
    export PUBLIC_API_URL="${BASE_PATH}/api/v1"
 | 
			
		||||
    export BASE_PATH="${BASE_PATH}/web"
 | 
			
		||||
    export PUBLIC_API_URL=""
 | 
			
		||||
    cd /opt/mediamanager/web
 | 
			
		||||
    $STD npm ci
 | 
			
		||||
    $STD npm run build
 | 
			
		||||
    rm -rf "$FRONTEND_FILES_DIR"/build
 | 
			
		||||
    cp -r build "$FRONTEND_FILES_DIR"
 | 
			
		||||
    export BASE_PATH=""
 | 
			
		||||
    export VIRTUAL_ENV="/opt/${MM_DIR}/venv"
 | 
			
		||||
    cd /opt/mediamanager
 | 
			
		||||
    rm -rf "$MM_DIR"/{media_manager,alembic*}
 | 
			
		||||
 
 | 
			
		||||
@@ -47,14 +47,13 @@ export CONFIG_DIR="${MM_DIR}/config"
 | 
			
		||||
export FRONTEND_FILES_DIR="${MM_DIR}/web/build"
 | 
			
		||||
export BASE_PATH=""
 | 
			
		||||
export PUBLIC_VERSION=""
 | 
			
		||||
export PUBLIC_API_URL="${BASE_PATH}/api/v1"
 | 
			
		||||
export BASE_PATH="${BASE_PATH}/web"
 | 
			
		||||
export PUBLIC_API_URL=""
 | 
			
		||||
export BASE_PATH=""
 | 
			
		||||
cd /opt/mediamanager/web
 | 
			
		||||
$STD npm ci
 | 
			
		||||
$STD npm run build
 | 
			
		||||
mkdir -p {"$MM_DIR"/web,"$MEDIA_DIR","$CONFIG_DIR"}
 | 
			
		||||
cp -r build "$FRONTEND_FILES_DIR"
 | 
			
		||||
export BASE_PATH=""
 | 
			
		||||
export VIRTUAL_ENV="${MM_DIR}/venv"
 | 
			
		||||
cd /opt/mediamanager
 | 
			
		||||
cp -r {media_manager,alembic*} "$MM_DIR"
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user