[install.sh] Don't treat failure to install image with same version as running SONiC image as an error (#1389)

This commit is contained in:
Joe LeVeque 2018-02-12 15:34:54 -08:00 committed by GitHub
parent 6ccd1601b8
commit d844accb59
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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