Fix: npm-Cache-Verzeichnis vor Build dem APP_USER zuweisen
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>main v1.1.316
parent
09f9cf3553
commit
140d737231
|
|
@ -115,6 +115,10 @@ frontend_build_quiet() {
|
|||
echo "[i] Frontend: vorbereiten …"
|
||||
as_app "mkdir -p '${APP_DIR}/public/build' '${APP_DIR}/node_modules' '${APP_DIR}/.vite' '${APP_DIR}/.npm-cache'"
|
||||
chown -R "$APP_USER":"$APP_GROUP" "${APP_DIR}/node_modules" "${APP_DIR}/.vite" "${APP_DIR}/.npm-cache" 2>/dev/null || true
|
||||
# npm-Cache im Home-Dir des APP_USER korrigieren (root-Läufe hinterlassen root-Dateien)
|
||||
local npm_home_cache
|
||||
npm_home_cache="$(eval echo "~${APP_USER}")/.npm"
|
||||
[[ -d "${npm_home_cache}" ]] && chown -R "${APP_USER}":"${APP_GROUP}" "${npm_home_cache}" 2>/dev/null || true
|
||||
|
||||
# Altes Build-Verzeichnis sichern — wird erst nach erfolgreichem Build ersetzt
|
||||
local BUILD_DIR="${APP_DIR}/public/build"
|
||||
|
|
|
|||
Loading…
Reference in New Issue