diff options
Diffstat (limited to 'debian/ovn-central.postinst')
-rwxr-xr-x | debian/ovn-central.postinst | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/debian/ovn-central.postinst b/debian/ovn-central.postinst index bdf5c4a8b..10e07ece4 100755 --- a/debian/ovn-central.postinst +++ b/debian/ovn-central.postinst @@ -20,19 +20,19 @@ set -e case "$1" in configure) - DEFAULT=/etc/default/ovn-central - TEMPLATE=/usr/share/ovn/central/default.template - if ! test -e $DEFAULT; then - cp $TEMPLATE $DEFAULT - else + DEFAULT=/etc/default/ovn-central + TEMPLATE=/usr/share/ovn/central/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) |