Subversion Repositories ALCASAR

Rev

Rev 2454 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2454 Rev 2688
Line 27... Line 27...
27
do
27
do
28
        $SED "/^$/d" $file
28
        $SED "/^$/d" $file
29
        chown root:apache $file
29
        chown root:apache $file
30
        chmod 660 $file
30
        chmod 660 $file
31
done
31
done
32
 
-
 
33
#update dnsmasq-blackhole with uamallowed domains ($ALCASAR_UAMDOMAIN)
-
 
34
#remove old configuration
-
 
35
sed -i '/^server=/d' /etc/dnsmasq-blackhole.conf
-
 
36
 
-
 
37
for domain in $(cat $ALCASAR_UAMDOMAIN | cut -d' ' -f1)
-
 
38
do
-
 
39
        domain_exception="server=/$(echo $domain | cut -d'"' -f2)/#"
-
 
40
        sed -i "/conf-file/a$domain_exception" /etc/dnsmasq-blackhole.conf
-
 
41
done
-
 
42
if [ "$PARENT_SCRIPT" != "alcasar.sh" ] # don't restart on install stage
-
 
43
then
-
 
44
        systemctl restart dnsmasq-blackhole
-
 
45
fi
-