remove GIT_REPOSITORY

This commit is contained in:
2023-06-16 06:51:25 +00:00
parent 57e5b759c1
commit 04bd4f5a28

View File

@@ -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;