19 lines
390 B
Bash
19 lines
390 B
Bash
#!/bin/sh
|
|
set -e
|
|
|
|
if command -v systemctl >/dev/null 2>&1; then
|
|
systemctl daemon-reload
|
|
fi
|
|
|
|
if [ "$1" = "purge" ]; then
|
|
rm -rf /etc/bitoj
|
|
rm -f /etc/apparmor.d/bitoj-guards
|
|
if command -v service >/dev/null 2>&1; then
|
|
service apparmor reload >/dev/null 2>&1 || true
|
|
elif [ -x /etc/init.d/apparmor ]; then
|
|
/etc/init.d/apparmor reload >/dev/null 2>&1 || true
|
|
fi
|
|
fi
|
|
|
|
exit 0
|