Fix permissions of openvpn lease database.
authorArne Fitzenreiter <arne_f@ipfire.org>
Sat, 5 Sep 2009 12:11:20 +0000 (14:11 +0200)
committerArne Fitzenreiter <arne_f@ipfire.org>
Sat, 5 Sep 2009 12:11:20 +0000 (14:11 +0200)
config/rootfiles/core/31/update.sh

index fcbee29..48afaa9 100644 (file)
@@ -117,7 +117,7 @@ grub-install --no-floppy ${ROOT::`expr length $ROOT`-1} --recheck
 #
 #perl -e "require '/var/ipfire/lang.pl'; &Lang::BuildCacheLang"
 #
-# Add "script-security 3 system" to openvpn config
+# Add some entries to openvpn config
 #
 if [ ! -x "/var/ipfire/ovpn/server.conf" ]; then
        grep -q "script-security" /var/ipfire/ovpn/server.conf \
@@ -131,8 +131,9 @@ fi
 
 if [ ! -x "/var/ipfire/ovpn/ovpn-leases.db" ]; then
        touch /var/ipfire/ovpn/ovpn-leases.db
+       chmod 700 /var/ipfire/ovpn/ovpn-leases.db
+       chown nobody:nobody /var/ipfire/ovpn/ovpn-leases.db
 fi
-        
 #
 # Delete old lm-sensor modullist...
 #