File: update-files.sh

package info (click to toggle)
nagios-plugins-contrib 24.20190301
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 6,944 kB
  • sloc: perl: 36,804; sh: 13,006; python: 2,549; php: 593; lex: 582; makefile: 473; ansic: 281; ruby: 149; awk: 81
file content (13 lines) | stat: -rwxr-xr-x 332 bytes parent folder | download | duplicates (5)
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/*