refs #1019 fix container name in stop, specify branch
oginstaller/pipeline/head This commit looks good Details

move-to-docker
Natalia Serrano 2024-10-31 16:36:18 +01:00
parent 88f0650e34
commit c72f4e9515
1 changed files with 6 additions and 5 deletions

View File

@ -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