From 28fa07eeb042d57c350de5fa50dc392095be7228 Mon Sep 17 00:00:00 2001 From: ravinsp <33562092+ravinsp@users.noreply.github.com> Date: Sat, 25 Jun 2022 09:24:51 +0530 Subject: [PATCH] Conditional check for docker registry uninstall script. --- installer/sashimono-uninstall.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/installer/sashimono-uninstall.sh b/installer/sashimono-uninstall.sh index 27230fb..1269676 100755 --- a/installer/sashimono-uninstall.sh +++ b/installer/sashimono-uninstall.sh @@ -87,8 +87,10 @@ rm $service_path # Reload the systemd daemon after removing the service systemctl daemon-reload -echo "Removing Sashimono private docker registry..." -$SASHIMONO_BIN/docker-registry-uninstall.sh +if [ -f $SASHIMONO_BIN/docker-registry-uninstall.sh ]; then + echo "Removing Sashimono private docker registry..." + $SASHIMONO_BIN/docker-registry-uninstall.sh +fi # Delete binaries except message board and sashimnono uninstall script. # We keep uninstall script so user can uninstall again if error occured at later steps.