Fix: install.sh failure if $host env is setted (#7203)

Fix sed replace cmd

Signed-off-by: Qian Deng <dengq@vmware.com>
This commit is contained in:
Qian Deng 2019-03-22 19:04:40 +08:00 committed by Yan
parent 8d3946a0e2
commit e538a4c448

View File

@ -160,7 +160,7 @@ echo ""
h2 "[Step $item]: preparing environment ..."; let item+=1
if [ -n "$host" ]
then
sed "s/^hostname: .*/hostname = $host/g" -i ./harbor.yml
sed "s/^hostname: .*/hostname: $host/g" -i ./harbor.yml
fi
prepare_para=
if [ $with_notary ]