mirror of
https://github.com/hackacad/bastille.git
synced 2025-12-16 15:20:38 +01:00
Merge pull request #1222 from BastilleBSD/tschettervictor-patch-1
This commit is contained in:
@@ -97,12 +97,10 @@ for _jail in ${JAILS}; do
|
|||||||
|
|
||||||
# Workaround to properly copy host resolv.conf to jail if the host file is a symlink.
|
# Workaround to properly copy host resolv.conf to jail if the host file is a symlink.
|
||||||
if [ "${host_path}" = "${bastille_resolv_conf}" ] && [ -L "${host_path}" ]; then
|
if [ "${host_path}" = "${bastille_resolv_conf}" ] && [ -L "${host_path}" ]; then
|
||||||
_option="${OPTION}L"
|
OPTION="${OPTION}L"
|
||||||
else
|
|
||||||
_option="${OPTION}"
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if ! cp "${_option}" "${host_path}" "${jail_path}"; then
|
if ! cp "${OPTION}" "${host_path}" "${jail_path}"; then
|
||||||
ERRORS=$((ERRORS + 1))
|
ERRORS=$((ERRORS + 1))
|
||||||
error_continue "[ERROR]: CP failed: ${host_path} -> ${jail_path}"
|
error_continue "[ERROR]: CP failed: ${host_path} -> ${jail_path}"
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user