From 830369f8a8f3e9f5f94428d36cc77e00edada837 Mon Sep 17 00:00:00 2001 From: Facinorous Date: Thu, 5 Nov 2020 10:53:56 -0500 Subject: [PATCH] fix mirror script --- setup | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/setup b/setup index 4508b41..3527014 100644 --- a/setup +++ b/setup @@ -8,7 +8,7 @@ for group in "${groupArray[@]}"; do git clone $gitmirrorsRepo ~/$projectLocation/mirrormanagement/$group chmod 755 ~/$projectLocation/mirrormanagement/$group/*.sh -sed "10s,.*,user_home=\"/home/${system_user}/gitmirrors-bs\"," ~/$projectLocation/mirrormanagement/$group/config.sh.SAMPLE > ~/$projectLocation/mirrormanagement/$group/config.sh +sed "10s,.*,user_home=\"/home/${USER}/gitmirrors-bs\"," ~/$projectLocation/mirrormanagement/$group/config.sh.SAMPLE > ~/$projectLocation/mirrormanagement/$group/config.sh sed -i "37s/.*/gitlab_namespace=\"${group}\"/" ~/$projectLocation/mirrormanagement/$group/config.sh sed -i "39s,.*,gitlab_url=\"${gitlabURL}\"," ~/$projectLocation/mirrormanagement/$group/config.sh sed -i "42s/.*/gitlab_user=\"${gitlabUser}\"/" ~/$projectLocation/mirrormanagement/$group/config.sh @@ -63,7 +63,7 @@ cat > update < ~/$projectLocation/mirrormanagement/$group/config.sh +sed "10s,.*,user_home=\"/home/${USER}/gitmirrors-bs\"," ~/$projectLocation/mirrormanagement/$group/config.sh.SAMPLE > ~/$projectLocation/mirrormanagement/$group/config.sh sed -i "37s/.*/gitlab_namespace=\"${group}\"/" ~/$projectLocation/mirrormanagement/$group/config.sh sed -i "39s,.*,gitlab_url=\"${gitlabURL}\"," ~/$projectLocation/mirrormanagement/$group/config.sh sed -i "42s/.*/gitlab_user=\"${gitlabUser}\"/" ~/$projectLocation/mirrormanagement/$group/config.sh