From e496f1aec590a696715f7934aed060f23862ba1e Mon Sep 17 00:00:00 2001 From: Philipp Wuensche Date: Mon, 4 Aug 2014 14:11:39 +0200 Subject: Fix bug in the date-string creation reported by kaltheat. --- ezjail-admin | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'ezjail-admin') diff --git a/ezjail-admin b/ezjail-admin index f79082d..86ff736 100755 --- a/ezjail-admin +++ b/ezjail-admin @@ -274,7 +274,7 @@ ezjail_splitworld() { if [ "${ezjail_use_zfs}" = "YES" ]; then ensure_jailzfs /sbin/zfs create ${ezjail_jailzfs}/basejail - /sbin/zfs snapshot ${ezjail_jailzfs}/basejail@`date -v -7d +"%C%y%m%d_%H:%M:%S"` + /sbin/zfs snapshot ${ezjail_jailzfs}/basejail@`date +"%C%y%m%d_%H:%M:%S"` fi # Remove schg flags from old basejail binaries. The flags @@ -1003,8 +1003,8 @@ setup|update) # If ran from cron be kind to freebsds update servers and sleep first [ -z "$TERM" -o "$TERM" = "dumb" ] && ezjail_urgency="cron" || ezjail_urgency="fetch" if [ "${ezjail_use_zfs}" = "YES" ]; then - zfs snapshot ${ezjail_jailzfs}/basejail@`date -v -7d +"%C%y%m%d_%H:%M:%S"` - zfs snapshot ${ezjail_jailzfs}/newjail@`date -v -7d +"%C%y%m%d_%H:%M:%S"` + zfs snapshot ${ezjail_jailzfs}/basejail@`date +"%C%y%m%d_%H:%M:%S"` + zfs snapshot ${ezjail_jailzfs}/newjail@`date +"%C%y%m%d_%H:%M:%S"` fi env PAGER=/bin/cat freebsd-update -b ${ezjail_jailbase} ${ezjail_urgency} install env PAGER=/bin/cat freebsd-update -b ${ezjail_jailtemplate} ${ezjail_urgency} install -- cgit v1.2.3