This patch adds a postrm script which deletes /opt/opendaylight/
on purge. This deletes user data and configuration. This patch
also corrects README.Debian, using the systemd unit to start OpenDaylight.
Change-Id: I558d9735d7904a5036f8538526b93a772a74b22d
Signed-off-by: Akshita Jha <zenith158@gmail.com>
-To run the installed karaf container, use:
+To start OpenDaylight via systemd, use:
+ $sudo systemctl start opendaylight
- $ sudo karaf
- or
- $ sudo /opt/opendaylight/bin/karaf
+To uninstall OpenDaylight, use:
+ $sudo apt-get remove opendaylight
+To uninstall OpenDaylight, while deleting user data and configuration, use:
+ $sudo apt-get purge opendaylight
--- /dev/null
+#!/bin/sh
+set -e
+
+case "$1" in
+ purge)
+ rm -rf /opt/opendaylight/
+ ;;
+ remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
+ ;;
+ *)
+ echo "postrm called with unknown argument \`\$1'" >&2
+ exit 1
+ ;;
+esac
+
+#DEBHELPER#
+
+exit 0