#!/bin/sh set -e # in the openscap-daemon version 0.1.6-3, config.ini has been misplaced in # /etc/config.ini/config.ini, instead of /etc/oscapd/config.ini. # In this case (and only this one), this directory must be deleted first # From now on, the install will deploy /etc/oscapd/config.ini as a file. if [ "$1" = "upgrade" ] && dpkg --compare-versions "$2" eq "0.1.6-3" ; then if [ -d /etc/oscapd/config.ini ] then rm -rf /etc/oscapd/config.ini fi fi