From 04bd4f5a28ea45c946c9b52f7e6e78d30abe9d8d Mon Sep 17 00:00:00 2001 From: hael Date: Fri, 16 Jun 2023 06:51:25 +0000 Subject: [PATCH] remove GIT_REPOSITORY --- entrypoint.sh | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/entrypoint.sh b/entrypoint.sh index de9fe0b..fea5403 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -4,8 +4,11 @@ toUpperCase() { echo "$*" | tr '[:lower:]' '[:upper:]'; } GIT_REPO=$GIT_REPO -ORGANIZATION=$ORGANIZATION +if [ "$GIT_REPO" == "" ]; then + GIT_REPO=git.format.hu +fi +ORGANIZATION=$ORGANIZATION if [ "$ORGANIZATION" == "" ]; then ORGANIZATION=format fi @@ -14,7 +17,6 @@ SMARTHOST_PROXY=$(toUpperCase $SMARTHOST_PROXY) LOCAL_PROXY=$(toUpperCase $LOCAL_PROXY) VPN_PROXY=$(toUpperCase $VPN_PROXY) CRON=$(toUpperCase $CRON) -GIT_REPOSITORY=$GIT_REPOSITORY HOST=$HOST PORT=$PORT cd /root @@ -23,15 +25,11 @@ if [ "$PORT" == "" ]; then PORT=20202 fi -if [ "$GIT_REPOSITORY" == "" ]; then - GIT_REPOSITORY=git.format.hu -fi - if [ "$HOST" == "" ]; then HOST=git.format.hu fi -sed -i "s/GIT_REPOSITORY/$GIT_REPOSITORY/g" /root/.ssh/config; +sed -i "s/GIT_REPO/$GIT_REPO/g" /root/.ssh/config; sed -i "s/HOST/$HOST/g" /root/.ssh/config; sed -i "s/PORT/$PORT/g" /root/.ssh/config;