mirror of
https://github.com/dgtlmoon/changedetection.io.git
synced 2026-05-12 20:52:00 +00:00
4298c52a7e
Build Debian Package / Build and Package changedetection.io (push) Has been cancelled
Publish Python 🐍distribution 📦 to PyPI and TestPyPI / Build distribution 📦 (push) Has been cancelled
ChangeDetection.io Container Build Test / test-container-build (push) Has been cancelled
ChangeDetection.io App Test / lint-code (push) Has been cancelled
Publish Python 🐍distribution 📦 to PyPI and TestPyPI / Test the built 📦 package works basically. (push) Has been cancelled
Publish Python 🐍distribution 📦 to PyPI and TestPyPI / Publish Python 🐍 distribution 📦 to PyPI (push) Has been cancelled
ChangeDetection.io App Test / test-application-3-10 (push) Has been cancelled
ChangeDetection.io App Test / test-application-3-11 (push) Has been cancelled
ChangeDetection.io App Test / test-application-3-12 (push) Has been cancelled
ChangeDetection.io App Test / test-application-3-13 (push) Has been cancelled
30 lines
735 B
Bash
Executable File
30 lines
735 B
Bash
Executable File
#!/bin/sh
|
|
set -e
|
|
|
|
case "$1" in
|
|
purge)
|
|
# Remove system user on purge
|
|
if getent passwd _changedetection >/dev/null; then
|
|
deluser --system _changedetection >/dev/null || true
|
|
fi
|
|
|
|
# Remove data directory on purge (with confirmation in package description)
|
|
if [ -d /var/lib/changedetection ]; then
|
|
echo "Note: Data directory /var/lib/changedetection has been preserved."
|
|
echo "Remove manually with: rm -rf /var/lib/changedetection"
|
|
fi
|
|
;;
|
|
|
|
remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
|
|
;;
|
|
|
|
*)
|
|
echo "postrm called with unknown argument \`$1'" >&2
|
|
exit 1
|
|
;;
|
|
esac
|
|
|
|
#DEBHELPER#
|
|
|
|
exit 0
|