updater: fix ipsec.conf and squid.conf permissions. v2.9-beta2
authorArne Fitzenreiter <arne_f@ipfire.org>
Tue, 21 Dec 2010 21:11:39 +0000 (22:11 +0100)
committerArne Fitzenreiter <arne_f@ipfire.org>
Tue, 21 Dec 2010 21:11:39 +0000 (22:11 +0100)
config/rootfiles/core/44/update.sh

index 97416ce..40a0895 100644 (file)
@@ -170,6 +170,7 @@ fi
 mv /var/ipfire/vpn/ipsec.conf /var/ipfire/vpn/ipsec.conf.org
 grep -v "keyexchange=ikev1" /var/ipfire/vpn/ipsec.conf.org > /var/ipfire/vpn/ipsec.conf
 sed -i "s|^conn [A-Za-z].*$|&\n\tkeyexchange=ikev1|g" /var/ipfire/vpn/ipsec.conf
+chown nobody:nobody /var/ipfire/vpn/ipsec.conf
 
 #new squid has some changed options. Build a basic config to be able start squid.
 mv /var/ipfire/proxy/squid.conf /var/ipfire/proxy/squid.conf.org
@@ -178,6 +179,7 @@ grep -v "error_directory " | \
 grep -v "reply_body_max_size 0" > /var/ipfire/proxy/squid.conf
 echo >> /var/ipfire/proxy/squid.conf
 echo error_directory /etc/squid/errors >> /var/ipfire/proxy/squid.conf
+chown nobody:nobody /var/ipfire/proxy/squid.conf
 
 #Convert extrahd entries to UUID
 cp -f /var/ipfire/extrahd/devices /var/ipfire/extrahd/devices.org