This makes it more obvious and discoverable what this files are about. We install compat symlinks so that we do not break external components that expect these pathnames. Change-Id: I50643d08d19600767d14fa24e7da9b0f0be7eaefchanges/76/36376/4
parent
e31d8dd9c8
commit
c4a020df3f
@ -1,2 +1,2 @@
|
|||||||
templates/* /etc/ngcp-config/templates/etc/ngcp-tests/
|
templates/* /etc/ngcp-config/templates/etc/ngcp-system-tests/
|
||||||
testrunner /usr/share/ngcp-tests/
|
testrunner /usr/share/ngcp-system-tests/
|
||||||
|
@ -0,0 +1,2 @@
|
|||||||
|
/usr/share/ngcp-system-tests /usr/share/ngcp-tests
|
||||||
|
/etc/ngcp-system-tests /etc/ngcp-tests
|
@ -0,0 +1,25 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
|
case "$1" in
|
||||||
|
install|upgrade)
|
||||||
|
# We need to move aside the old generated directory, as the new package
|
||||||
|
# ships compat symlinks at the same location.
|
||||||
|
if [ -d /etc/ngcp-tests ]; then
|
||||||
|
if [ -d /etc/ngcp-system-tests ]; then
|
||||||
|
rm -rf /etc/ngcp-tests
|
||||||
|
else
|
||||||
|
mv /etc/ngcp-tests /etc/ngcp-system-tests
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
abort-upgrade)
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
echo "preinst called with unknown argument '$1'" >&2
|
||||||
|
exit 1
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
#DEBHELPER#
|
Loading…
Reference in new issue