diff --git a/component-installer.sh b/component-installer.sh index 44c4782..f50cf98 100644 --- a/component-installer.sh +++ b/component-installer.sh @@ -19,6 +19,9 @@ function install_docker() { } function install_ogcore_docker() { + docker compose -f repo/docker-compose-deploy.yml create + docker compose -f repo/docker-compose-deploy.yml up -d database + docker compose -f repo/docker-compose-deploy.yml run --rm php ./provision.sh cat < /etc/systemd/system/ogcore.service [Unit] Description=Servicio para ejecutar Docker Compose de ogCore @@ -28,14 +31,15 @@ Requires=docker.service [Service] WorkingDirectory=/opt/opengnsys/ogCore/repo/ ExecStart=/usr/bin/docker compose -f docker-compose-deploy.yml up -ExecStop=/usr/bin/docker compose down +ExecStop=/usr/bin/docker compose -f docker-compose-deploy.yml down Restart=always [Install] WantedBy=multi-user.target EOF - systemctl enable ogcore + systemctl daemon-reload + systemctl enable --now ogcore } @@ -83,7 +87,7 @@ OGBOOT_REPO="$OPENGNSYS_BASE_URL/ogboot.git" OGCORE_REPO="$OPENGNSYS_BASE_URL/ogcore.git" OGDHCP_REPO="$OPENGNSYS_BASE_URL/ogdhcp.git" OGGUI_REPO="$OPENGNSYS_BASE_URL/oggui.git" -OGREPOSITORY_REPO="$OPENGNSYS_BASE_URL/oggui.git" +OGREPOSITORY_REPO="$OPENGNSYS_BASE_URL/ogrepo.git" export GIT_SSL_NO_VERIFY=1 echo ======================================== > /etc/issue