mirror of
https://github.com/safing/portmaster-packaging.git
synced 2026-05-20 20:10:34 +00:00
17 lines
720 B
Bash
Executable File
17 lines
720 B
Bash
Executable File
rm -rf /opt/safing/portmaster/updates ||:
|
|
|
|
# file is marked as a ghost on RPM system so it might have
|
|
# been automatically deleted by the package manager.
|
|
rm /lib/systemd/system/portmaster.service 2>/dev/null >&2 ||:
|
|
rm /usr/share/applications/portmaster.desktop 2>/dev/null >&2 ||:
|
|
rm /usr/share/applications/portmaster_notifier.desktop 2>/dev/null >&2 ||:
|
|
|
|
if command -V semanage >/dev/null 2>&1; then
|
|
semanage fcontext --delete $(realpath /opt)'/safing/portmaster/portmaster-start' || :
|
|
semanage fcontext --delete $(realpath /opt)'/safing/portmaster/updates/linux_(.*)' || :
|
|
restorecon -R /opt/safing/portmaster 2>/dev/null >&2 || :
|
|
fi
|
|
|
|
if [ "$1" = "purge" ]; then
|
|
rm -rf /opt/safing/portmaster ||:
|
|
fi |