summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZuul <zuul@review.openstack.org>2019-03-15 19:23:09 +0000
committerGerrit Code Review <review@openstack.org>2019-03-15 19:23:09 +0000
commit46bbf79317f41a906dccd0e0e16298b81769cb4a (patch)
treef49e2909ed1550cdd8c3cfc9758baf28fb91ba2c
parent11357f8d14715f672165f479d8dbdbe59c6774af (diff)
parentadfce3ef13de2d24d633d1f7408e4dae12e40866 (diff)
Merge "make_stx_mirror_yum_conf: Fix sed statement"HEADmaster
-rwxr-xr-xcentos-mirror-tools/make_stx_mirror_yum_conf.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/centos-mirror-tools/make_stx_mirror_yum_conf.sh b/centos-mirror-tools/make_stx_mirror_yum_conf.sh
index 90f5d38..01f3000 100755
--- a/centos-mirror-tools/make_stx_mirror_yum_conf.sh
+++ b/centos-mirror-tools/make_stx_mirror_yum_conf.sh
@@ -148,7 +148,7 @@ if grep -q '^reposdir=' $CENGN_YUM_CONF; then
148 # reposdir= already exists, modify it 148 # reposdir= already exists, modify it
149 if [ $RETAIN_REPODIR -eq 1 ]; then 149 if [ $RETAIN_REPODIR -eq 1 ]; then
150 # Append CENGN_REPOS_DIR 150 # Append CENGN_REPOS_DIR
151 sed "s#^reposdir=.*\$#reposdir=\1 $CENGN_REPOS_DIR#" -i $CENGN_YUM_CONF 151 sed "s#^reposdir=\(.*\)\$#reposdir=\1 $CENGN_REPOS_DIR#" -i $CENGN_YUM_CONF
152 else 152 else
153 # replace with CENGN_REPOS_DIR 153 # replace with CENGN_REPOS_DIR
154 sed "s#^reposdir=.*\$#reposdir=$CENGN_REPOS_DIR#" -i $CENGN_YUM_CONF 154 sed "s#^reposdir=.*\$#reposdir=$CENGN_REPOS_DIR#" -i $CENGN_YUM_CONF