mirror of
https://github.com/nextcloud/nextcloudpi.git
synced 2026-01-10 15:12:01 -03:30
dnsmasq.sh: Fix RPI build
This commit is contained in:
parent
82beb6eeaf
commit
9a2e631e2b
@ -16,7 +16,7 @@ install()
|
||||
apt-get install --no-install-recommends -y dnsmasq
|
||||
rc=0
|
||||
service dnsmasq status > /dev/null 2>&1 || rc=$?
|
||||
! is_docker && [[ $rc -eq 3 ]] && {
|
||||
! is_docker && [[ $rc -eq 3 ]] && [[ "$INIT_SYSTEM" != "chroot" ]] && {
|
||||
echo "Applying workaround for dnsmasq bug (compare issue #1446)"
|
||||
service systemd-resolved stop || true
|
||||
service dnsmasq start
|
||||
|
||||
@ -19,6 +19,21 @@ export SYSTEMD_PAGER=
|
||||
[[ -f "$NCPCFG" ]] || export NCPCFG=/usr/local/etc/ncp.cfg
|
||||
[[ -f "$NCPCFG" ]] || { echo "$NCPCFG not found" >2; exit 1; }
|
||||
|
||||
if [[ "$(ps -p 1 --no-headers -o "%c")" == "systemd" ]] && ! [[ -d "/run/systemd/system" ]]
|
||||
then
|
||||
INIT_SYSTEM="chroot"
|
||||
elif [[ -d "/run/systemd/system" ]]
|
||||
then
|
||||
INIT_SYSTEM="systemd"
|
||||
elif [[ "$(ps -p 1 --no-headers -o "%c")" == "run-parts.sh" ]]
|
||||
then
|
||||
INIT_SYSTEM="docker"
|
||||
else
|
||||
INIT_SYSTEM="unknown"
|
||||
fi
|
||||
|
||||
export INIT_SYSTEM
|
||||
|
||||
#unset TRUSTED_DOMAINS
|
||||
#declare -A TRUSTED_DOMAINS
|
||||
#export TRUSTED_DOMAINS=(
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user