Re-order UR scripts

This commit is contained in:
Jeremy Gardais 2023-01-24 17:49:39 +01:00
parent 6f483dad2f
commit 8533dfaa36
Signed by: jegardai
GPG Key ID: E759BAA22501AF32
3 changed files with 0 additions and 19 deletions

View File

@ -1,19 +0,0 @@
#!/bin/sh
# Script to check if LDAP connections are initialized
# List LDAP connections without:
# LISTEN
# 129.20.123.1 server
ss_cmd=$(ss -laputen | grep ":389 " | grep -v 129.20.123.1 | grep -v LISTEN)
# email recipient
mail_recip="jeremy.gardais@univ-rennes1.fr"
if [ "${ss_cmd}" ]; then
ss -laputen | grep ":389 " | grep -v 129.20.123.1 | grep -v LISTEN | mail -s "LDAP1 connections" "${mail_recip}"
fi
exit 0