mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-30 16:14:21 +02:00
Don't convert if we've already done it
This commit is contained in:
@@ -7,6 +7,9 @@ set -u
|
|||||||
|
|
||||||
for i; do
|
for i; do
|
||||||
base=${i%%.rrd}
|
base=${i%%.rrd}
|
||||||
|
if [ -e $i.old ]; then
|
||||||
|
continue
|
||||||
|
fi
|
||||||
mv $i $i.old
|
mv $i $i.old
|
||||||
echo "Processing $i"
|
echo "Processing $i"
|
||||||
rrdtool dump $i.old | sed -e 's|<name>.*</name>|<name>mibval</name>|' > $base.xml
|
rrdtool dump $i.old | sed -e 's|<name>.*</name>|<name>mibval</name>|' > $base.xml
|
||||||
|
|||||||
Reference in New Issue
Block a user