git.lirion.de

Of git, get, and gud

summaryrefslogtreecommitdiffstats
path: root/nagios-plugins-contrib-24.20190301~bpo9+1/dsa/update-files.sh
blob: 6539cf3f1ebec98f0b86460a731582988ee3d241 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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/*