Import files from ungleich internal repository
This commit is contained in:
commit
3b71ff00af
4 changed files with 19 additions and 0 deletions
3
gencode-remote
Normal file
3
gencode-remote
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
if grep -q "^__file/etc/nftables.conf" $__messages_in; then
|
||||||
|
echo /etc/init.d/nftables restart
|
||||||
|
fi
|
15
manifest
Normal file
15
manifest
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
config=$(cat "$__object/parameter/config")
|
||||||
|
|
||||||
|
srcfile="$__files/${config}.conf"
|
||||||
|
initscript="$__type/files/nftables-init"
|
||||||
|
|
||||||
|
if [ ! -f "$srcfile" ]; then
|
||||||
|
echo "No such config ${config}. Aborting." >&2
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
__package nftables
|
||||||
|
__file /etc/nftables.conf --source "$srcfile" --mode 0644
|
||||||
|
__file /etc/init.d/nftables --source "$initscript" --mode 0755
|
||||||
|
|
||||||
|
require="__file/etc/init.d/nftables" __start_on_boot nftables
|
1
parameter/required
Normal file
1
parameter/required
Normal file
|
@ -0,0 +1 @@
|
||||||
|
config
|
0
singleton
Normal file
0
singleton
Normal file
Loading…
Reference in a new issue