From cae74bb9558675396ad5cebaf92b350004f5cabb Mon Sep 17 00:00:00 2001 From: Joe LeVeque Date: Mon, 12 Feb 2018 19:34:13 +0000 Subject: [PATCH] [install.sh] Don't treat failure to install image with same version as running SONiC image as an error --- 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 517485ba03e..4d0d0321860 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