From 887ea909f3cd72da1bd3a18ad522886ac4ebb307 Mon Sep 17 00:00:00 2001 From: jash Date: Sat, 3 Nov 2018 17:51:12 +0100 Subject: [PATCH] added image cleanup --- dist/setup.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/dist/setup.sh b/dist/setup.sh index 3327de7..2975d96 100755 --- a/dist/setup.sh +++ b/dist/setup.sh @@ -427,6 +427,12 @@ if [[ -f installer/config.sh ]]; then . installer/config.sh fi +if [[ $CLEANUP && $(docker image ls | grep cyphernodeconf) =~ cyphernodeconf ]]; then + step " clean cyphernodeconf image" + try docker image rm cyphernodeconf > /dev/null 2>&1 + next +fi + modify_permissions if [[ $INSTALL == 1 ]]; then