Added overlay command to be compatibile with the hooks.

This commit is contained in:
Tobias Tom
2020-07-27 15:07:47 +01:00
parent 24b4985371
commit 5a9034ff18

View File

@@ -134,6 +134,9 @@ for _jail in ${JAILS}; do
;;
overlay)
_cmd='cp'
_args="${bastille_template}/${_args} /"
;;
cp|copy)
# Convert relative "from" path into absolute path inside the template directory. -- cwells
if [ "${_args%${_args#?}}" != '/' ]; then
_args="${bastille_template}/${_args}"