Merge branch 'type/__postfix' of git://github.com/asteven/cdist

This commit is contained in:
Nico Schottelius 2013-10-10 10:04:44 +09:00
commit 9ded11daf0
1 changed files with 2 additions and 0 deletions

View File

@ -42,6 +42,8 @@ remove_entry() {
suffix="#/cdist:$__object_name"
cat << DONE
tmpfile=\$(mktemp ${config}.cdist.XXXXXXXXXX)
# preserve ownership and permissions of existing file
cp -p "$config" "\$tmpfile"
awk -v prefix="$prefix" -v suffix="$suffix" '
{
if (index(\$0,prefix)) {