Conditional check for docker registry uninstall script.

This commit is contained in:
ravinsp
2022-06-25 09:24:51 +05:30
parent 802b0a87cf
commit 28fa07eeb0

View File

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