From 5aa2bfcf8b51f936682af64f72d5cd8ee60acdbb Mon Sep 17 00:00:00 2001 From: Thomas E Lackey Date: Fri, 24 Mar 2023 22:28:50 -0500 Subject: [PATCH] Redirect output --- gitea/initialize-gitea.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/gitea/initialize-gitea.sh b/gitea/initialize-gitea.sh index 936f882..b78309a 100755 --- a/gitea/initialize-gitea.sh +++ b/gitea/initialize-gitea.sh @@ -76,9 +76,10 @@ if [[ $? != 0 ]] ; then -d '{"username": "'${GITEA_NEW_ORGANIZATION}'"}' > /dev/null echo "Created the organization ${GITEA_NEW_ORGANIZATION}" fi -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" # 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);" +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 + +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"