Merge pull request #314 from TiPEX360/arch-opensuse-create_ap-fix

Use 'aa-complain' instead of 'complain' to remove dnsmasq restriction
This commit is contained in:
Lakindu Akash 2023-05-17 14:39:21 +05:30 committed by GitHub
commit 6a236acaf5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1879,10 +1879,12 @@ if [[ "$SHARE_METHOD" != "bridge" ]]; then
if [[ $NO_DNSMASQ -eq 0 ]]; then
iptables -w -I INPUT -p udp -m udp --dport 67 -j ACCEPT || die
if which complain > /dev/null 2>&1; then
# openSUSE's apparmor does not allow dnsmasq to read files.
# apparmor does not allow dnsmasq to read files.
# remove restriction.
complain dnsmasq
if COMPLAIN_CMD=$(command -v complain || command -v aa-complain); then
$COMPLAIN_CMD dnsmasq
fi
umask 0033