Fix : Deploy bug
This commit is contained in:
@@ -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>'
|
||||
#>
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user