Files
Pironman5/root/DEBIAN/postrm
Cantibra 80210e740a
All checks were successful
Pironman 5 Daemon (Bookworm) / Pironman 5 Daemon [arm64] (push) Successful in 11s
Pironman 5 Daemon (Trixie) / Pironman 5 Daemon [arm64] (push) Successful in 11s
Initialize Git Repository: 'Pironman5'
2026-01-26 06:10:22 +01:00

45 lines
1.6 KiB
Bash

#!/usr/bin/sh
set -e
set -u
if [ -d '/run/systemd/system' ]; then
/usr/bin/systemctl --system daemon-reload > '/dev/null' 2>&1 || \
/usr/bin/true
fi
case "${1}" in
remove)
if [ -x '/usr/bin/deb-systemd-helper' ]; then
/usr/bin/deb-systemd-helper mask 'pironman5.service' > '/dev/null' 2>&1 || \
/usr/bin/true
/usr/bin/deb-systemd-helper mask 'pironman5-led.service' > '/dev/null' 2>&1 || \
/usr/bin/true
fi
;;
purge)
if [ -x '/usr/bin/deb-systemd-helper' ]; then
/usr/bin/deb-systemd-helper purge 'pironman5.service' > '/dev/null' 2>&1 || \
/usr/bin/true
/usr/bin/deb-systemd-helper unmask 'pironman5.service' > '/dev/null' 2>&1 || \
/usr/bin/true
/usr/bin/deb-systemd-helper purge 'pironman5-err.service' > '/dev/null' 2>&1 || \
/usr/bin/true
/usr/bin/deb-systemd-helper unmask 'pironman5-err.service' > '/dev/null' 2>&1 || \
/usr/bin/true
fi
/usr/bin/rm --force --recursive '/opt/pironman5'
/usr/bin/sed --in-place --expression='/^\s*$/N; /## sunfounder-pironman5/,/dtoverlay=sunfounder-pironman5,ir=off/d' '/boot/config.txt'
/usr/bin/echo ''
/usr/bin/echo '################################################'
/usr/bin/echo '# #'
/usr/bin/echo '# ! Restart the device to unload the drivers ! #'
/usr/bin/echo '# #'
/usr/bin/echo '################################################'
/usr/bin/echo ''
;;
esac
/usr/bin/rm --force --recursive '/var/log/gitea'
/usr/bin/rm --force --recursive '/var/logrotate/gitea'