mirror of
https://github.com/hackacad/bastille.git
synced 2025-12-30 17:30:24 +01:00
template: Add HOSTCMD to hooks
This commit is contained in:
@@ -154,7 +154,7 @@ TARGET="${1}"
|
||||
TEMPLATE="${2}"
|
||||
bastille_template=${bastille_templatesdir}/${TEMPLATE}
|
||||
if [ -z "${HOOKS}" ]; then
|
||||
HOOKS='LIMITS INCLUDE PRE FSTAB PF PKG OVERLAY CONFIG SYSRC SERVICE CMD RENDER'
|
||||
HOOKS='LIMITS INCLUDE PRE FSTAB PF PKG OVERLAY CONFIG SYSRC SERVICE CMD RENDER HOSTCMD'
|
||||
fi
|
||||
|
||||
bastille_root_check
|
||||
@@ -369,6 +369,9 @@ for _jail in ${JAILS}; do
|
||||
;;
|
||||
fstab|mount)
|
||||
_cmd='mount' ;;
|
||||
# Execute this command on the host
|
||||
hostcmd)
|
||||
eval "${_args}" ;;
|
||||
include)
|
||||
_cmd='template' ;;
|
||||
overlay)
|
||||
|
||||
Reference in New Issue
Block a user