From f9bfee788f85fe50e6103877438b6c7395252b1e Mon Sep 17 00:00:00 2001 From: Roy Crihfield Date: Fri, 4 Aug 2023 15:24:07 +0800 Subject: [PATCH] Fix last gitea compose command --- gitea/initialize-gitea.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gitea/initialize-gitea.sh b/gitea/initialize-gitea.sh index 9d4bf12..c1298e9 100755 --- a/gitea/initialize-gitea.sh +++ b/gitea/initialize-gitea.sh @@ -79,7 +79,8 @@ fi # Seed a token for act_runner registration. -docker compose -p ${CERC_SO_COMPOSE_PROJECT} exec db psql -U gitea -d gitea -c "INSERT INTO public.action_runner_token(token, owner_id, repo_id, is_active, created, updated, deleted) VALUES('${CERC_GITEA_RUNNER_REGISTRATION_TOKEN}', 0, 0, 'f', 1679000000, 1679000000, NULL);" >/dev/null +${compose_command} exec db \ + psql -U gitea -d gitea -c "INSERT INTO public.action_runner_token(token, owner_id, repo_id, is_active, created, updated, deleted) VALUES('${CERC_GITEA_RUNNER_REGISTRATION_TOKEN}', 0, 0, 'f', 1679000000, 1679000000, NULL);" >/dev/null echo "Gitea was configured to use host name: gitea.local, ensure that this resolves to localhost, e.g. with sudo vi /etc/hosts" echo "Success, gitea is properly initialized" -- 2.45.2