ospf, bgp: fix checks scripts
This commit is contained in:
parent
28851698e6
commit
f2451118c4
|
@ -102,6 +102,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||||
* accounts: configure user home, ssh keys and groups only if it already exists, so that there is no error when run in check mode and user doesn't exist yet
|
* accounts: configure user home, ssh keys and groups only if it already exists, so that there is no error when run in check mode and user doesn't exist yet
|
||||||
* collectd: fix rights for collectd directory
|
* collectd: fix rights for collectd directory
|
||||||
* etc-git: Remove deprecated/unsupported "warn" parameter
|
* etc-git: Remove deprecated/unsupported "warn" parameter
|
||||||
|
* ospf, bgp: fix checks scripts
|
||||||
|
|
||||||
### Removed
|
### Removed
|
||||||
|
|
||||||
|
|
|
@ -9,8 +9,6 @@
|
||||||
|
|
||||||
# If it did, we send a mail with the states of the different sessions.
|
# If it did, we send a mail with the states of the different sessions.
|
||||||
|
|
||||||
set -u
|
|
||||||
|
|
||||||
PATH=$HOME/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:.
|
PATH=$HOME/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:.
|
||||||
|
|
||||||
_MAILTO="{{ bgp_mailto }}"
|
_MAILTO="{{ bgp_mailto }}"
|
||||||
|
@ -30,6 +28,7 @@ mkdir -p "${_TMPDIR}"
|
||||||
# Don't try to run if it's already running
|
# Don't try to run if it's already running
|
||||||
if [ -e "${_PIDFILE}" ]; then
|
if [ -e "${_PIDFILE}" ]; then
|
||||||
echo "$(date)" >> "${_TMPDIR}"/log
|
echo "$(date)" >> "${_TMPDIR}"/log
|
||||||
|
echo "ERROR : $0 already has a PIDFILE"
|
||||||
exit 1
|
exit 1
|
||||||
else
|
else
|
||||||
echo $$ >> "${_PIDFILE}"
|
echo $$ >> "${_PIDFILE}"
|
||||||
|
|
|
@ -9,8 +9,6 @@
|
||||||
|
|
||||||
# If it did, we send a mail with the states of the different sessions.
|
# If it did, we send a mail with the states of the different sessions.
|
||||||
|
|
||||||
set -u
|
|
||||||
|
|
||||||
PATH=$HOME/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:.
|
PATH=$HOME/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:.
|
||||||
|
|
||||||
_MAILTO="{{ ospf_mailto }}"
|
_MAILTO="{{ ospf_mailto }}"
|
||||||
|
@ -31,6 +29,7 @@ mkdir -p "${_TMPDIR}"
|
||||||
# Don't try to run if it's already running
|
# Don't try to run if it's already running
|
||||||
if [ -e "${_PIDFILE}" ]; then
|
if [ -e "${_PIDFILE}" ]; then
|
||||||
echo "$(date)" >> "${_TMPDIR}"/log
|
echo "$(date)" >> "${_TMPDIR}"/log
|
||||||
|
echo "ERROR : $0 already has a PIDFILE"
|
||||||
exit 1
|
exit 1
|
||||||
else
|
else
|
||||||
echo $$ >> "${_PIDFILE}"
|
echo $$ >> "${_PIDFILE}"
|
||||||
|
|
|
@ -9,8 +9,6 @@
|
||||||
|
|
||||||
# If it did, we send a mail with the states of the different sessions.
|
# If it did, we send a mail with the states of the different sessions.
|
||||||
|
|
||||||
set -u
|
|
||||||
|
|
||||||
PATH=$HOME/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:.
|
PATH=$HOME/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:.
|
||||||
|
|
||||||
_MAILTO="{{ ospf_mailto }}"
|
_MAILTO="{{ ospf_mailto }}"
|
||||||
|
@ -31,6 +29,7 @@ mkdir -p "${_TMPDIR}"
|
||||||
# Don't try to run if it's already running
|
# Don't try to run if it's already running
|
||||||
if [ -e "${_PIDFILE}" ]; then
|
if [ -e "${_PIDFILE}" ]; then
|
||||||
echo "$(date)" >> "${_TMPDIR}"/log
|
echo "$(date)" >> "${_TMPDIR}"/log
|
||||||
|
echo "ERROR : $0 already has a PIDFILE"
|
||||||
exit 1
|
exit 1
|
||||||
else
|
else
|
||||||
echo $$ >> "${_PIDFILE}"
|
echo $$ >> "${_PIDFILE}"
|
||||||
|
|
Loading…
Reference in a new issue