Skip to content

Commit

Permalink
Merge pull request #5 from gcutrini/hotfix/self-signed-cert-script-co…
Browse files Browse the repository at this point in the history
…ntainer-inspect-fix

Uses provided self sign cert script container param in docker inspect command.
  • Loading branch information
jboxberger committed Apr 9, 2022
2 parents 4864f31 + 5e86e60 commit ef1de5d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/scripts/gitlab-self-signed-cert
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ if [ -z "$GITLAB_HOSTNAME" ]; then
fi

if [ -z "$GITLAB_HTTPS_PORT" ]; then
GITLAB_HTTPS_PORT=$(docker inspect synology-gitlab-ce | jq -r '.[].HostConfig.PortBindings."443/tcp"[].HostPort')
GITLAB_HTTPS_PORT=$(docker inspect $GITLAB_CONTAINER_NAME | jq -r '.[].HostConfig.PortBindings."443/tcp"[].HostPort')
if [ -z "$GITLAB_HTTPS_PORT" ] || [ "$GITLAB_HTTPS_PORT" = "null" ]; then
read -ep "gitlab https port? [default: $GITLAB_HTTPS_PORT_DEFAULT]: " GITLAB_HTTPS_PORT
if [ -z "$GITLAB_HTTPS_PORT" ]; then
Expand Down

0 comments on commit ef1de5d

Please sign in to comment.