Update caddy-jail.sh
parent
07cc1ada60
commit
2dd7ebbc6e
|
@ -103,11 +103,11 @@ cat <<__EOF__ >/tmp/pkg.json
|
||||||
__EOF__
|
__EOF__
|
||||||
|
|
||||||
# Create the jail and install previously listed packages
|
# Create the jail and install previously listed packages
|
||||||
#if ! iocage create --name "${JAIL_NAME}" -p /tmp/pkg.json -r "${RELEASE}" interfaces="${JAIL_INTERFACES}" ip4_addr="${INTERFACE}|${IP}/${NETMASK}" defaultrouter="${DEFAULT_GW_IP}" boot="on" host_hostname="${JAIL_NAME}" vnet="${VNET}"
|
if ! iocage create --name "${JAIL_NAME}" -p /tmp/pkg.json -r "${RELEASE}" interfaces="${JAIL_INTERFACES}" ip4_addr="${INTERFACE}|${IP}/${NETMASK}" defaultrouter="${DEFAULT_GW_IP}" boot="on" host_hostname="${JAIL_NAME}" vnet="${VNET}"
|
||||||
#then
|
then
|
||||||
# echo "Failed to create jail"
|
echo "Failed to create jail"
|
||||||
# exit 1
|
exit 1
|
||||||
#fi
|
fi
|
||||||
rm /tmp/pkg.json
|
rm /tmp/pkg.json
|
||||||
|
|
||||||
#####
|
#####
|
||||||
|
|
Loading…
Reference in New Issue