From 713f02f488701ffc183721f88115df93b4b2f7ff Mon Sep 17 00:00:00 2001 From: yumoqing Date: Wed, 12 Aug 2026 12:49:49 +0800 Subject: [PATCH] fix: add viewport meta, RBAC permission wildcard fix in build.sh --- build.sh | 11 +++++++++++ wwwroot/index.html | 2 +- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/build.sh b/build.sh index 8e47c37..9a70904 100644 --- a/build.sh +++ b/build.sh @@ -178,6 +178,17 @@ if [ -f "${PKGDIR}/bricks/build.sh" ]; then fi green " OK" +# ============================================================ +# 7b: 修复 RBAC 权限通配符 (bricks等静态资源目录需 /** 匹配子路径) +# ============================================================ +blue "[7b/10] RBAC 权限通配符修复..." +mysql -u test -ptest123 pccs -e " +UPDATE permission SET path = CONCAT(path, '**') +WHERE path IN ('/pcpool/', '/pcc/', '/storage_mgr/', '/image_mgr/', '/pccs/', '/appbase/', '/imgs/', '/bricks/') +AND path NOT LIKE '%**'; +" 2>/dev/null +green " OK" + # ============================================================ # 8: 种子数据 # ============================================================ diff --git a/wwwroot/index.html b/wwwroot/index.html index 549e5fd..70bd4c4 100644 --- a/wwwroot/index.html +++ b/wwwroot/index.html @@ -1,6 +1,6 @@ -PCCS 算力中心集群系统 +PCCS 算力中心集群系统