Merge pull request #285 from chriswells0/hook-conversion

Add ability to convert "hook" files to Bastillefile format.
This commit is contained in:
Christer Edwards
2020-12-12 12:05:35 -07:00
committed by GitHub
3 changed files with 65 additions and 8 deletions

View File

@@ -155,6 +155,9 @@ clone|config|cmd|console|convert|cp|edit|export|htop|limits|mount|pkg|rename|ser
JAILS="${JAILS} ${_jail}"
fi
done
elif [ "${CMD}" = 'template' ] && [ "${TARGET}" = '--convert' ]; then
# This command does not act on a jail, so we are temporarily bypassing the presence/started
# checks. The command will simply convert a template from hooks to a Bastillefile. -- cwells
else
JAILS="${TARGET}"