From c72f4e9515d24fcb51de9558f1b90517b594ecb8 Mon Sep 17 00:00:00 2001 From: Natalia Serrano Date: Thu, 31 Oct 2024 16:36:18 +0100 Subject: [PATCH] refs #1019 fix container name in stop, specify branch --- component-installer.sh | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/component-installer.sh b/component-installer.sh index 1613c53..83da585 100644 --- a/component-installer.sh +++ b/component-installer.sh @@ -61,15 +61,15 @@ Requires=docker.service [Service] Restart=always -ExecStart=/usr/bin/docker run --name ogGui-app -p 4200:4200 -v $ENV_FILE:/app/.env -d opengnsys/oggui:$oggui_version -ExecStop=/usr/bin/docker stop angular-app -ExecStopPost=/usr/bin/docker rm -f angular-app +ExecStart=/usr/bin/docker run --rm --name ogGui-app -p 4200:4200 -v $ENV_FILE:/app/.env -d opengnsys/oggui:$oggui_version +ExecStop=/usr/bin/docker stop ogGui-app [Install] WantedBy=multi-user.target EOF - systemctl enable oggui-app + systemctl daemon-reload + systemctl enable --now oggui-app } @@ -117,7 +117,8 @@ do ;; ogGui) echo "Instalando ogGui..." - git clone "$OGGUI_REPO" "$component_dir/repo" + OGGUI_BRANCH=main + git clone --branch "$OGGUI_BRANCH" "$OGGUI_REPO" "$component_dir/repo" echo - ogGui >> /etc/issue install_docker install_oggui_docker