diff options
Diffstat (limited to 'debian/ovn-host.postinst')
-rwxr-xr-x | debian/ovn-host.postinst | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/debian/ovn-host.postinst b/debian/ovn-host.postinst index 05e80ad1f..4b3edeb75 100755 --- a/debian/ovn-host.postinst +++ b/debian/ovn-host.postinst @@ -20,19 +20,19 @@ set -e case "$1" in configure) - DEFAULT=/etc/default/ovn-host - TEMPLATE=/usr/share/ovn/host/default.template - if ! test -e $DEFAULT; then - cp $TEMPLATE $DEFAULT - else + DEFAULT=/etc/default/ovn-host + TEMPLATE=/usr/share/ovn/host/default.template + if ! test -e $DEFAULT; then + cp $TEMPLATE $DEFAULT + else for var in $(awk -F'[ :]' '/^# [_A-Z0-9]+:/{print $2}' $TEMPLATE) do if ! grep $var $DEFAULT >/dev/null 2>&1; then - echo >> $DEFAULT - sed -n "/$var:/,/$var=/p" $TEMPLATE >> $DEFAULT + echo >> $DEFAULT + sed -n "/$var:/,/$var=/p" $TEMPLATE >> $DEFAULT fi done - fi + fi ;; abort-upgrade|abort-remove|abort-deconfigure) |