ospf, bgp: fix checks scripts

This commit is contained in:
Jérémy Dubois 2024-02-19 10:37:31 +01:00
parent 28851698e6
commit f2451118c4
4 changed files with 4 additions and 6 deletions

View file

@ -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
* collectd: fix rights for collectd directory
* etc-git: Remove deprecated/unsupported "warn" parameter
* ospf, bgp: fix checks scripts
### Removed

View file

@ -9,8 +9,6 @@
# 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:.
_MAILTO="{{ bgp_mailto }}"
@ -30,6 +28,7 @@ mkdir -p "${_TMPDIR}"
# Don't try to run if it's already running
if [ -e "${_PIDFILE}" ]; then
echo "$(date)" >> "${_TMPDIR}"/log
echo "ERROR : $0 already has a PIDFILE"
exit 1
else
echo $$ >> "${_PIDFILE}"

View file

@ -9,8 +9,6 @@
# 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:.
_MAILTO="{{ ospf_mailto }}"
@ -31,6 +29,7 @@ mkdir -p "${_TMPDIR}"
# Don't try to run if it's already running
if [ -e "${_PIDFILE}" ]; then
echo "$(date)" >> "${_TMPDIR}"/log
echo "ERROR : $0 already has a PIDFILE"
exit 1
else
echo $$ >> "${_PIDFILE}"

View file

@ -9,8 +9,6 @@
# 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:.
_MAILTO="{{ ospf_mailto }}"
@ -31,6 +29,7 @@ mkdir -p "${_TMPDIR}"
# Don't try to run if it's already running
if [ -e "${_PIDFILE}" ]; then
echo "$(date)" >> "${_TMPDIR}"/log
echo "ERROR : $0 already has a PIDFILE"
exit 1
else
echo $$ >> "${_PIDFILE}"