From 4f9f0733f0f7a40b835c7c42c53c5ba47ede961c Mon Sep 17 00:00:00 2001 From: Tyler Lynch Date: Thu, 29 Aug 2024 16:58:26 -0400 Subject: [PATCH] Updated Gitea config --- Solutions/Gitea/Gitea-pkg.yaml | 2 +- Solutions/Gitea/Gitea.sh | 20 ++++++++++++++++---- 2 files changed, 17 insertions(+), 5 deletions(-) diff --git a/Solutions/Gitea/Gitea-pkg.yaml b/Solutions/Gitea/Gitea-pkg.yaml index 1e81bc19..4f9e7818 100644 --- a/Solutions/Gitea/Gitea-pkg.yaml +++ b/Solutions/Gitea/Gitea-pkg.yaml @@ -132,7 +132,7 @@ Resources: - Key: Name Value: gitea-server UserData: !Base64 - Fn::Sub: "#!/bin/bash\n\nset -eou pipefail\n\nlocal_ip=$(ec2-metadata | grep \"^local-ipv4: \" | cut -d \" \" -f 2)\n\n# Get the password from secrets manager\nsecret_string=$(aws secretsmanager get-secret-value --secret-id ${SecretName} | jq -r \".SecretString\")\n\n# Install cfn-signal\nyum install -y aws-cfn-bootstrap\n\n# Install go\nyum install -y go\n\n# Install nodejs\nyum install -y nodejs\n\n# Clone the repo and build Gitea\nsudo -u ec2-user -i <