We always want these to overwrite the previously installed files, even if locally modified, otherwise bad things happen. We are not concerned about possibly losing data, because on NGCP /etc is always managed with git, so the whole history is always available. Change-Id: I7f1af4eab0da5a3bb4bae6e83472e3da8df23f5cchanges/29/14329/1
parent
0017566790
commit
d693ef759a
@ -0,0 +1 @@
|
||||
ngcp-system-tests: file-in-etc-not-marked-as-conffile etc/ngcp-config/templates/*
|
||||
@ -0,0 +1,45 @@
|
||||
#!/bin/sh -e
|
||||
# This script can be called in the following ways:
|
||||
#
|
||||
# After the package was removed:
|
||||
# <postrm> remove
|
||||
#
|
||||
# After the package was purged:
|
||||
# <postrm> purge
|
||||
#
|
||||
# After the package was upgraded:
|
||||
# <old-postrm> upgrade <new-version>
|
||||
# if that fails:
|
||||
# <new-postrm> failed-upgrade <old-version>
|
||||
#
|
||||
#
|
||||
# After all of the packages files have been replaced:
|
||||
# <postrm> disappear <overwriting-package> <version>
|
||||
#
|
||||
#
|
||||
# If preinst fails during install:
|
||||
# <new-postrm> abort-install
|
||||
#
|
||||
# If preinst fails during upgrade of removed package:
|
||||
# <new-postrm> abort-install <old-version>
|
||||
#
|
||||
# If preinst fails during upgrade:
|
||||
# <new-postrm> abort-upgrade <old-version>
|
||||
|
||||
case "$1" in
|
||||
purge)
|
||||
rm -rf /etc/ngcp-tests/
|
||||
;;
|
||||
|
||||
remove|upgrade|failed-upgrade|disappear|abort-install|abort-upgrade)
|
||||
;;
|
||||
|
||||
*)
|
||||
echo "postrm called with unknown argument '$1'" >&2
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
||||
#DEBHELPER#
|
||||
|
||||
exit 0
|
||||
@ -1,3 +1,9 @@
|
||||
#!/usr/bin/make -f
|
||||
%:
|
||||
dh $@
|
||||
|
||||
override_dh_installdeb:
|
||||
dh_installdeb
|
||||
# Do not mark any of the templates as conffiles, we always want them
|
||||
# to be overwritten.
|
||||
sed -i -e '/\/etc\/ngcp-config\/templates/d' debian/*/DEBIAN/conffiles
|
||||
|
||||
Loading…
Reference in new issue