From 0b2fd52c9ac1219911b3c7ab589ddc22bdcdecbd Mon Sep 17 00:00:00 2001 From: Philipp Wuensche Date: Tue, 27 Aug 2019 15:30:04 +0200 Subject: check for the ezjail install logfile and bail out if it isn't present --- ezjail-admin | 1 + 1 file changed, 1 insertion(+) (limited to 'ezjail-admin') diff --git a/ezjail-admin b/ezjail-admin index beffaed..1a2f4b1 100755 --- a/ezjail-admin +++ b/ezjail-admin @@ -1229,6 +1229,7 @@ baseclean) esac; done; shift $(( $OPTIND - 1 )) [ "${ezjail_yeswecan}" != "YES" ] && echo "baseclean dry run, nothing will be deleted. Use -y option to delete files." + [ ! -f "${ezjail_jailbase}/.ezjail.installlog" ] && echo "No .ezjail.installlog found in basejail, please run ezjail-admin install first." && exit 1 [ "${ezjail_use_zfs}" = "YES" ] && ensure_jailzfs ezjail_makeabsolute ezjail_jailtemp -- cgit v1.2.3