forked from pool/monitoring-plugins-repomd
- use "-L" option for curl to follow redirects
OBS-URL: https://build.opensuse.org/package/show/server:monitoring/monitoring-plugins-repomd?expand=0&rev=15
This commit is contained in:
parent
8d529a12bb
commit
0666d91554
@ -104,7 +104,7 @@ trap 'cleanup_and_exit "$STATE_UNKNOWN" "UNKOWN: received SIGTRAP, SIGBUS, SIGKI
|
|||||||
|
|
||||||
RESULTFILE=$($MKTEMP /tmp/check_repomd-XXXXXX)
|
RESULTFILE=$($MKTEMP /tmp/check_repomd-XXXXXX)
|
||||||
|
|
||||||
$CURL -s $URL -o "$RESULTFILE" 2>&1
|
$CURL -L -s $URL -o "$RESULTFILE" 2>&1
|
||||||
CURL_EXIT="$?"
|
CURL_EXIT="$?"
|
||||||
|
|
||||||
if [ x"$CURL_EXIT" != "x0" ]; then
|
if [ x"$CURL_EXIT" != "x0" ]; then
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Jul 30 17:48:42 CEST 2021 - ro@suse.de
|
||||||
|
|
||||||
|
- use "-L" option for curl to follow redirects
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Sun Apr 28 15:27:58 UTC 2019 - lars@linux-schulserver.de - 2.1
|
Sun Apr 28 15:27:58 UTC 2019 - lars@linux-schulserver.de - 2.1
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package monitoring-plugins-repomd
|
# spec file for package monitoring-plugins-repomd
|
||||||
#
|
#
|
||||||
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
# Copyright (c) 2021 SUSE LLC
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -22,7 +22,7 @@ License: BSD-3-Clause
|
|||||||
Group: System/Monitoring
|
Group: System/Monitoring
|
||||||
Version: 2.1
|
Version: 2.1
|
||||||
Release: 0
|
Release: 0
|
||||||
Url: http://en.opensuse.org/%{name}
|
URL: http://en.opensuse.org/%{name}
|
||||||
Source0: check_repomd
|
Source0: check_repomd
|
||||||
Source1: usr.lib.nagios.plugins.check_repomd
|
Source1: usr.lib.nagios.plugins.check_repomd
|
||||||
Requires: bash
|
Requires: bash
|
||||||
@ -47,7 +47,6 @@ Important options:
|
|||||||
-u <url_to_repomd.xml> : please enter the full URL to the repomd.xml file
|
-u <url_to_repomd.xml> : please enter the full URL to the repomd.xml file
|
||||||
-o <days> : days unless a repomd.xml file is handled as outdated (default: 30)
|
-o <days> : days unless a repomd.xml file is handled as outdated (default: 30)
|
||||||
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
Loading…
x
Reference in New Issue
Block a user