Use a default expiry of one month if nothing is specified.
This mimics the intended behavior of the default in garage-sign, but
doesn't rely on the date in the unsigned targets.
@@ -248,6 +248,8 @@ IMAGE_CMD_garagesign () {
target_expiry="--expires ${GARAGE_TARGET_EXPIRES}"
elif [ -n "${GARAGE_TARGET_EXPIRE_AFTER}" ]; then
target_expiry="--expire-after ${GARAGE_TARGET_EXPIRE_AFTER}"
+ else
+ target_expiry="--expire-after 1M"
fi
for push_retries in $( seq 3 ); do
