You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
495 B
26 lines
495 B
#!/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#
|