summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilipp Wuensche <cryx-freebsd@h3q.com>2019-08-27 15:30:04 +0200
committerPhilipp Wuensche <cryx-freebsd@h3q.com>2019-08-27 15:30:04 +0200
commit0b2fd52c9ac1219911b3c7ab589ddc22bdcdecbd (patch)
treeb5e87b14083fdaa25aa1c5a73c4a6128382e8872
parentbcf5edaa201b735419f45f817b8c89ff5ce20b69 (diff)
check for the ezjail install logfile and bail out if it isn't present
-rwxr-xr-xezjail-admin1
1 files changed, 1 insertions, 0 deletions
diff --git a/ezjail-admin b/ezjail-admin
index beffaed..1a2f4b1 100755
--- a/ezjail-admin
+++ b/ezjail-admin
@@ -1229,6 +1229,7 @@ baseclean)
1229 esac; done; shift $(( $OPTIND - 1 )) 1229 esac; done; shift $(( $OPTIND - 1 ))
1230 1230
1231 [ "${ezjail_yeswecan}" != "YES" ] && echo "baseclean dry run, nothing will be deleted. Use -y option to delete files." 1231 [ "${ezjail_yeswecan}" != "YES" ] && echo "baseclean dry run, nothing will be deleted. Use -y option to delete files."
1232 [ ! -f "${ezjail_jailbase}/.ezjail.installlog" ] && echo "No .ezjail.installlog found in basejail, please run ezjail-admin install first." && exit 1
1232 1233
1233 [ "${ezjail_use_zfs}" = "YES" ] && ensure_jailzfs 1234 [ "${ezjail_use_zfs}" = "YES" ] && ensure_jailzfs
1234 ezjail_makeabsolute ezjail_jailtemp 1235 ezjail_makeabsolute ezjail_jailtemp