File: update-files.sh

package info (click to toggle)
nagios-plugins-contrib 48.20250420
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 8,792 kB
  • sloc: perl: 48,359; sh: 18,671; ansic: 11,898; python: 2,696; makefile: 1,021; php: 593; lex: 582; ruby: 149; awk: 119
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/*