Fix install script

Move load images to above

Signed-off-by: DQ <dengq@vmware.com>
This commit is contained in:
DQ 2019-11-05 11:22:30 +08:00
parent 473b453616
commit 75c91273bc

View File

@ -47,6 +47,13 @@ check_docker
h2 "[Step $item]: checking docker-compose is installed ..."; let item+=1
check_dockercompose
if [ -f harbor*.tar.gz ]
then
h2 "[Step $item]: loading Harbor images ..."; let item+=1
docker load -i ./harbor*.tar.gz
fi
echo ""
h2 "[Step $item]: preparing environment ..."; let item+=1
if [ -n "$host" ]
then
@ -71,13 +78,6 @@ fi
./prepare $prepare_para
echo ""
if [ -f harbor*.tar.gz ]
then
h2 "[Step $item]: loading Harbor images ..."; let item+=1
docker load -i ./harbor*.tar.gz
fi
echo ""
if [ -n "$(docker-compose ps -q)" ]
then
note "stopping existing Harbor instance ..."