From 9f786975f620ae813a0268c97298585345dc8a0c Mon Sep 17 00:00:00 2001 From: m8in Date: Tue, 7 Apr 2026 18:51:20 +0200 Subject: [PATCH] further checks --- .../check/host/all/core_ssh_group_ssh_login_exists.check.sh | 5 +++++ ...re_ssh_user_jenkins_is_member_of_group_ssh_login.check.sh | 5 +++++ 2 files changed, 10 insertions(+) create mode 100755 script/check/host/all/core_ssh_group_ssh_login_exists.check.sh create mode 100755 script/check/host/all/core_ssh_user_jenkins_is_member_of_group_ssh_login.check.sh diff --git a/script/check/host/all/core_ssh_group_ssh_login_exists.check.sh b/script/check/host/all/core_ssh_group_ssh_login_exists.check.sh new file mode 100755 index 0000000..a7939fc --- /dev/null +++ b/script/check/host/all/core_ssh_group_ssh_login_exists.check.sh @@ -0,0 +1,5 @@ +#!/bin/bash + +getent group ssh_login > /dev/null \ + && exit 0 +exit 1 diff --git a/script/check/host/all/core_ssh_user_jenkins_is_member_of_group_ssh_login.check.sh b/script/check/host/all/core_ssh_user_jenkins_is_member_of_group_ssh_login.check.sh new file mode 100755 index 0000000..6885511 --- /dev/null +++ b/script/check/host/all/core_ssh_user_jenkins_is_member_of_group_ssh_login.check.sh @@ -0,0 +1,5 @@ +#!/bin/bash + +getent group ssh_login | grep -q jenkins \ + && exit 0 +exit 1