fix(pelican-panel): prevent composer superuser prompt (#10418)

This commit is contained in:
CanbiZ (MickLesk)
2025-12-29 20:38:10 +01:00
committed by GitHub
parent 62ca1552a8
commit 78b4f44447
2 changed files with 2 additions and 2 deletions

View File

@@ -831,7 +831,7 @@ cleanup_lxc() {
# Ruby gem
if command -v gem &>/dev/null; then $STD gem cleanup || true; fi
# Composer (PHP)
if command -v composer &>/dev/null; then COMPOSER_ALLOW_SUPERUSER=1 && $STD composer clear-cache || true; fi
if command -v composer &>/dev/null; then COMPOSER_ALLOW_SUPERUSER=1 $STD composer clear-cache || true; fi
if command -v journalctl &>/dev/null; then
$STD journalctl --vacuum-time=10m || true