* [git.ipfire.org] IPFire 2.x development tree branch, master, updated. daf34294f233a414cd14d08b1269b8192b591096
@ 2015-04-13 13:48 git
0 siblings, 0 replies; only message in thread
From: git @ 2015-04-13 13:48 UTC (permalink / raw)
To: ipfire-scm
[-- Attachment #1: Type: text/plain, Size: 1825 bytes --]
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "IPFire 2.x development tree".
The branch, master has been updated
via daf34294f233a414cd14d08b1269b8192b591096 (commit)
from 18bbd71bdcc95b7f335061aa22e61c39df912e8c (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit daf34294f233a414cd14d08b1269b8192b591096
Author: Alexander Marx <alexander.marx(a)ipfire.org>
Date: Mon Apr 13 15:03:17 2015 +0200
vpn-statistic: update old n2n configs in update.sh
-----------------------------------------------------------------------
Summary of changes:
config/rootfiles/core/89/update.sh | 12 ++++++++++++
1 file changed, 12 insertions(+)
Difference in files:
diff --git a/config/rootfiles/core/89/update.sh b/config/rootfiles/core/89/update.sh
index bb6c7a5..90a6d77 100644
--- a/config/rootfiles/core/89/update.sh
+++ b/config/rootfiles/core/89/update.sh
@@ -75,6 +75,18 @@ chown nobody.nobody \
/var/run/ovpnserver.log
# Update OpenVPN/collectd configuration
+files=`find /var/ipfire/ovpn/n2nconf/ -type d`
+for i in $files;
+do
+ if ! grep -q "status-version" $i/${i##*/}.conf; then
+ echo "# Logfile" >> $i/${i##*/}.conf
+ echo "status-version 1" >> $i/${i##*/}.conf
+ fi
+ if ! grep -q "status " $i/${i##*/}.conf; then
+ echo "status /var/run/openvpn/${i##*/}-n2n 10" >> $i/${i##*/}.conf
+ fi
+done
+
/usr/sbin/ovpn-collectd-convert
chown nobody.nobody /var/ipfire/ovpn/collectd.vpn
hooks/post-receive
--
IPFire 2.x development tree
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2015-04-13 13:48 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-04-13 13:48 [git.ipfire.org] IPFire 2.x development tree branch, master, updated. daf34294f233a414cd14d08b1269b8192b591096 git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox