Update caddy-jail.sh

master
basilhendroff 2020-07-29 01:40:33 +08:00 committed by GitHub
parent abf8038fe5
commit 152acd80c6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 5 deletions

View File

@ -94,9 +94,9 @@ 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