From 57a83359e84e0cf25c0de8be2e5c9248b5383e22 Mon Sep 17 00:00:00 2001 From: Arne Fitzenreiter Date: Thu, 8 Oct 2009 04:50:06 +0200 Subject: [PATCH] Fix wrong openvpn server.conf permissions set by core31 updater. --- config/rootfiles/core/32/update.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/config/rootfiles/core/32/update.sh b/config/rootfiles/core/32/update.sh index a8e7a8d93f..479a0c62b9 100644 --- a/config/rootfiles/core/32/update.sh +++ b/config/rootfiles/core/32/update.sh @@ -29,6 +29,11 @@ extract_files grep -v "tmpfs backup" /var/spool/cron/root.orig > /var/tmp/root.tmp echo "17 5 * * * /etc/init.d/tmpfs backup >/dev/null" >> /var/tmp/root.tmp fcrontab /var/tmp/root.tmp +#Fix openvpn server permissions +if [ -e "/var/ipfire/ovpn/server.conf" ]; then + chmod 644 /var/ipfire/ovpn/server.conf + chown nobody:nobody /var/ipfire/ovpn/server.conf +fi #Update Language cache perl -e "require '/var/ipfire/lang.pl'; &Lang::BuildCacheLang" #Remove some non compat-wireless modules -- 2.39.2