mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-pkg
synced 2026-01-15 03:53:32 +01:00
jw-pkg: Honour #conf: line at top of template
Up to now, jw-pkg only evaluates config lines at the top of secret-tables. Look for config patterns at the top of templates, too. Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
parent
575b8e089d
commit
9b546592e1
1 changed files with 1 additions and 0 deletions
|
|
@ -339,6 +339,7 @@ cmd_compile_templates()
|
||||||
local owner=$default_owner
|
local owner=$default_owner
|
||||||
local group=$default_group
|
local group=$default_group
|
||||||
local diff=""
|
local diff=""
|
||||||
|
eval `sed "/$conf_patt/ !d; s/$conf_patt//" $f`
|
||||||
eval `sed "/$conf_patt/ !d; s/$conf_patt//" $table`
|
eval `sed "/$conf_patt/ !d; s/$conf_patt//" $table`
|
||||||
sed 's|^[ ]*#.*||; s|/|\\/|g; s|\([^ =]\+\)[ =]\+\(.*\)|s/\1/\2/g|' $table | sed -f - $f > $tmp
|
sed 's|^[ ]*#.*||; s|/|\\/|g; s|\([^ =]\+\)[ =]\+\(.*\)|s/\1/\2/g|' $table | sed -f - $f > $tmp
|
||||||
chmod $mode $tmp
|
chmod $mode $tmp
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue