Fix : Deploy bug
Some checks failed
release / build (push) Successful in 23s
release / verify-windows (push) Failing after 1m8s

This commit is contained in:
jeanotx32
2026-08-11 18:41:19 +02:00
parent 80be1e42fc
commit 6f70da56a6
5 changed files with 26 additions and 10 deletions

View File

@@ -13,7 +13,7 @@
.EXAMPLE
& ([scriptblock]::Create((irm 'https://git.jeanbonapp.com/api/packages/jeanbon/generic/stream-control-agent/latest/install-agent.ps1'))) `
-Registry 'https://git.jeanbonapp.com' `
-Server 'ws://control.lan:8080/ws/agent' `
-Server 'ws://<IP_DU_CONTROLE>:8080/ws/agent' `
-Token '<JETON_ENROLEMENT>'
#>

View File

@@ -5,7 +5,7 @@
# curl -fsSL https://git.jeanbonapp.com/api/packages/jeanbon/generic/stream-control-agent/latest/install-agent.sh \
# | sudo bash -s -- \
# --registry https://git.jeanbonapp.com \
# --server ws://control.lan:8080/ws/agent \
# --server ws://<IP_DU_CONTROLE>:8080/ws/agent \
# --token <JETON_ENROLEMENT>
#
# Réexécuter le script met à jour le binaire sans toucher à l'identité d'un
@@ -40,7 +40,7 @@ Installe (ou met à jour) l'agent Stream Control sur une VM Linux.
curl -fsSL https://git.jeanbonapp.com/api/packages/jeanbon/generic/stream-control-agent/latest/install-agent.sh \
| sudo bash -s -- \
--registry https://git.jeanbonapp.com \
--server ws://control.lan:8080/ws/agent \
--server ws://<IP_DU_CONTROLE>:8080/ws/agent \
--token <JETON_ENROLEMENT>
Réexécuter le script met à jour le binaire sans toucher à l'identité d'un agent
@@ -215,7 +215,12 @@ systemctl restart "$SERVICE"
# --- Vérification -----------------------------------------------------------
echo
sudo -u "$RUN_USER" AGENT_CONFIG="$CONFIG_FILE" \
# Mêmes variables que l'unité systemd, sinon le diagnostic signale un DISPLAY
# absent que le service, lui, aura bien.
sudo -u "$RUN_USER" \
AGENT_CONFIG="$CONFIG_FILE" \
DISPLAY=":0" \
XAUTHORITY="$USER_HOME/.Xauthority" \
"$(command -v node)" "$INSTALL_DIR/agent.cjs" --check || true
sleep 2