git.lirion.de

Of git, get, and gud

summaryrefslogtreecommitdiffstats
path: root/nagios-plugins-contrib-24.20190301~bpo9+1/dsa/update-files.sh
diff options
context:
space:
mode:
Diffstat (limited to 'nagios-plugins-contrib-24.20190301~bpo9+1/dsa/update-files.sh')
-rwxr-xr-xnagios-plugins-contrib-24.20190301~bpo9+1/dsa/update-files.sh13
1 files changed, 13 insertions, 0 deletions
diff --git a/nagios-plugins-contrib-24.20190301~bpo9+1/dsa/update-files.sh b/nagios-plugins-contrib-24.20190301~bpo9+1/dsa/update-files.sh
new file mode 100755
index 0000000..6539cf3
--- /dev/null
+++ b/nagios-plugins-contrib-24.20190301~bpo9+1/dsa/update-files.sh
@@ -0,0 +1,13 @@
+#!/bin/bash
+
+# update all files from the dsa nagios git
+find checks sbin share etc -type f | while read i; do
+ tmp=`mktemp`
+ if wget -O "${tmp}" "https://salsa.debian.org/dsa-team/mirror/dsa-nagios/raw/master/dsa-nagios-checks/${i}"; then
+ mv "${tmp}" "$i"
+ else
+ rm -f "${tmp}"
+ fi
+done
+
+chmod 755 sbin/*