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