mirror of https://gitee.com/bigwinds/arangodb
33 lines
768 B
Bash
Executable File
33 lines
768 B
Bash
Executable File
#!/bin/sh
|
|
set -e
|
|
|
|
# Automatically added by dh_installinit
|
|
if [ "$1" = "purge" ] ; then
|
|
update-rc.d arangodb3 remove >/dev/null
|
|
fi
|
|
|
|
|
|
# In case this system is running systemd, we make systemd reload the unit files
|
|
# to pick up changes.
|
|
if [ -d /run/systemd/system ] ; then
|
|
systemctl --system daemon-reload >/dev/null || true
|
|
fi
|
|
# End automatically added section
|
|
# Automatically added by dh_installdebconf
|
|
if [ "$1" = purge ] && [ -e /usr/share/debconf/confmodule ]; then
|
|
. /usr/share/debconf/confmodule
|
|
db_purge
|
|
fi
|
|
# End automatically added section
|
|
|
|
|
|
rm -rf /usr/share/arangodb3/js.old
|
|
|
|
if [ purge = "$1" ]; then
|
|
rm -rf /usr/share/arangodb3/js/apps
|
|
rm -rf /var/log/arangodb3
|
|
rm -rf /var/lib/arangodb3
|
|
rm -rf /var/lib/arangodb3-apps
|
|
rm -rf /var/run/arangodb
|
|
fi
|