export function for rdl_prometheus

This commit is contained in:
Ama 2025-09-24 16:44:13 +02:00
parent e0afa21640
commit bdccfbe84c

View file

@ -14,6 +14,8 @@ try_connection() {
timeout 20 ssh "$login" touch "$file"
}
export -f try_connection
should_reset() {
last_run=$(< /var/rdl_ssh_touch/"$login")
@ -32,6 +34,8 @@ should_reset() {
fi
}
if ! rdl_prometheus try_connection; then
echo Can\'t ssh "$login" touch "$file".
if should_reset; then