diff --git a/usr/local/share/bastille/create.sh b/usr/local/share/bastille/create.sh index 2f37b9b..1d6a749 100644 --- a/usr/local/share/bastille/create.sh +++ b/usr/local/share/bastille/create.sh @@ -337,7 +337,7 @@ create_jail() { if [ -n "${bastille_network_gateway}" ]; then /usr/sbin/sysrc -f "${bastille_jail_rc_conf}" defaultrouter="${bastille_network_gateway}" else - /usr/sbin/sysrc -f "${bastille_jail_rc_conf}" defaultrouter="$(route show default | awk '/gateway/ {print $2}')" + /usr/sbin/sysrc -f "${bastille_jail_rc_conf}" defaultrouter="$(netstat -rn | awk '/default/ {print $2}')" fi fi diff --git a/usr/local/share/bastille/template.sh b/usr/local/share/bastille/template.sh index a54cb24..6535cd1 100644 --- a/usr/local/share/bastille/template.sh +++ b/usr/local/share/bastille/template.sh @@ -266,7 +266,7 @@ for _jail in ${JAILS}; do if [ -s "${bastille_template}/SERVICE" ]; then echo -e "${COLOR_GREEN}[${_jail}]:SERVICE -- START${COLOR_RESET}" while read _service; do - jexec -l "${_jail}" /usr/sbin/service "${_service}" || exit 1 + jexec -l "${_jail}" /usr/sbin/service ${_service} || exit 1 done < "${bastille_template}/SERVICE" echo -e "${COLOR_GREEN}[${_jail}]:SERVICE -- END${COLOR_RESET}" echo