mirror of
https://codeberg.org/scip/jaildk.git
synced 2025-12-17 04:31:02 +01:00
fix #15: do not try to execute pf if there's no ip address configured
This commit is contained in:
@@ -340,6 +340,11 @@ rc_pf() {
|
|||||||
|
|
||||||
load_jail_config $jail
|
load_jail_config $jail
|
||||||
|
|
||||||
|
if test -z "$ip" -a -z "$ip6"; then
|
||||||
|
echo "PF not supported without configured ip address!" >&2
|
||||||
|
return
|
||||||
|
fi
|
||||||
|
|
||||||
# TODO:
|
# TODO:
|
||||||
# - put this into a separate function
|
# - put this into a separate function
|
||||||
# - clean up if generation of pf-ruleset.conf fails somehow
|
# - clean up if generation of pf-ruleset.conf fails somehow
|
||||||
@@ -1652,7 +1657,11 @@ jaildk_setup() {
|
|||||||
|
|
||||||
version=`date +%Y%m%d`
|
version=`date +%Y%m%d`
|
||||||
|
|
||||||
for subdir in appl/default-$version/db/ports appl/default-$version/etc etc/.template/etc-$version etc/.template/local-etc-$version home/.template/root-$version log/.template-$version; do
|
for subdir in appl/default-$version/db/ports \
|
||||||
|
appl/default-$version/etc \
|
||||||
|
etc/.template/etc-$version \
|
||||||
|
etc/.template/local-etc-$version \
|
||||||
|
home/.template/root-$version log/.template-$version; do
|
||||||
ex mkdir -p $j/$subdir
|
ex mkdir -p $j/$subdir
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user