Merge pull request #231 from tobiastom/bugfix/templates

Fixed the overlay command in Bastillefile
This commit is contained in:
Christer Edwards
2020-08-20 16:26:08 -06:00
committed by GitHub

View File

@@ -132,7 +132,11 @@ for _jail in ${JAILS}; do
# Allow redirection within the jail. -- cwells
_args="sh -c '${_args}'"
;;
cp)
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}"