Files
portmaster/packaging/linux/postinst
2024-09-05 10:25:57 +03:00

17 lines
460 B
Bash

#!/bin/bash
chmod +x /usr/lib/portmaster/portmaster-core
#
# Fix selinux permissions for portmaster-core if we have semanage
# available.
#
if command -V semanage >/dev/null 2>&1; then
semanage fcontext -a -t bin_t -s system_u $(realpath /usr/lib)'/portmaster/portmaster-core' || :
restorecon -R /usr/lib/portmaster/portmaster-core 2>/dev/null >&2 || :
fi
systemctl daemon-reload
systemctl enable portmaster.service
echo "Please reboot your system"