File: openscap-daemon.preinst

package info (click to toggle)
openscap-daemon 0.1.10-3
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 7,616 kB
  • sloc: xml: 86,526; python: 5,874; sh: 247; makefile: 23
file content (16 lines) | stat: -rwxr-xr-x 478 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/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

#DEBHELPER#