added image cleanup

This commit is contained in:
jash
2018-11-03 17:51:12 +01:00
committed by kexkey
parent 51235d2e06
commit 887ea909f3

6
dist/setup.sh vendored
View File

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