From d844accb59badfabca5715480c42c9a7cd4fff68 Mon Sep 17 00:00:00 2001 From: Joe LeVeque Date: Mon, 12 Feb 2018 15:34:54 -0800 Subject: [PATCH] [install.sh] Don't treat failure to install image with same version as running SONiC image as an error (#1389) --- installer/x86_64/install.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/installer/x86_64/install.sh b/installer/x86_64/install.sh index 517485ba03..4d0d032186 100755 --- a/installer/x86_64/install.sh +++ b/installer/x86_64/install.sh @@ -409,8 +409,8 @@ elif [ "$install_env" = "sonic" ]; then running_sonic_revision=$(cat /etc/sonic/sonic_version.yml | grep build_version | cut -f2 -d" ") # Prevent installing existing SONiC if it is running if [ "$image_dir" = "image-$running_sonic_revision" ]; then - echo "Error: Unable to install SONiC version $running_sonic_revision. Running SONiC has the same version" - exit 1 + echo "Not installing SONiC version $running_sonic_revision, as current running SONiC has the same version" + exit 0 fi # Remove extra SONiC images if any for f in $demo_mnt/image-* ; do