3b16fdd52a
- mécanisme presetVars (variables fixes injectées au rendu, surchargées par le formulaire) - 6 profils : base_tools / network_tools / dev_git (listes de paquets, low), docker_official (dépôt officiel Debian, confirmation), sharing (Samba/NFS/mDNS, confirmation), vm_guest_tools (qemu/vmware) - 4 templates custom (install-package-groups, docker-official-debian, sharing, vm-guest-tools) émettant PKG_INSTALLED/SERVICE_ENABLED/ERR → réutilise buildPostInstallResult - l'UI post-install générique les expose automatiquement (manifeste → formulaire → run) tsc 0 · 104 tests · build OK · boot OK (8 profils servis). Clôt le volet moteur tâche 2. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
15 lines
405 B
Smarty
15 lines
405 B
Smarty
#!/bin/sh
|
|
# Installe un groupe de paquets. {{packages}} = liste shell-safe fournie par le backend.
|
|
export LC_ALL=C
|
|
export DEBIAN_FRONTEND=noninteractive
|
|
echo "===SU:CUSTOM_PKGGROUPS==="
|
|
apt-get update -qq 2>&1
|
|
if apt-get install -y {{packages}} 2>&1; then
|
|
for p in {{packages}}; do echo "PKG_INSTALLED=$p"; done
|
|
CODE=0
|
|
else
|
|
echo "ERR=package_install_failed"
|
|
CODE=1
|
|
fi
|
|
echo "===SU:EXIT=${CODE}==="
|