|
|
|
@ -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)) { |
|
|
|
|