mirror of
https://github.com/m8tin/cis.git
synced 2026-04-02 11:01:29 +02:00
Further checks and format
This commit is contained in:
@@ -0,0 +1,8 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
_PKG_NAME='libpam-google-authenticator'
|
||||||
|
|
||||||
|
dpkg -l | grep -q -F "${_PKG_NAME}" 2> /dev/null \
|
||||||
|
&& exit 0
|
||||||
|
|
||||||
|
exit 1
|
||||||
8
script/check/host/all/core_pam_lib_pwquality_is_installed.check.sh
Executable file
8
script/check/host/all/core_pam_lib_pwquality_is_installed.check.sh
Executable file
@@ -0,0 +1,8 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
_PKG_NAME='libpam-pwquality'
|
||||||
|
|
||||||
|
dpkg -l | grep -q -F "${_PKG_NAME}" 2> /dev/null \
|
||||||
|
&& exit 0
|
||||||
|
|
||||||
|
exit 1
|
||||||
@@ -127,7 +127,6 @@ function addDefinition(){
|
|||||||
[ "$(id -u)" == "0" ] \
|
[ "$(id -u)" == "0" ] \
|
||||||
&& echo \
|
&& echo \
|
||||||
&& echo "Running setup as 'root' trying to add definition repository:" \
|
&& echo "Running setup as 'root' trying to add definition repository:" \
|
||||||
&& echo \
|
|
||||||
&& "${_CORE_SCRIPTS:?"Missing CORE_SCRIPTS"}addAndCheckGitRepository.sh" "${_DEFINITIONS}" readonly "${_REPOSITORY}" \
|
&& "${_CORE_SCRIPTS:?"Missing CORE_SCRIPTS"}addAndCheckGitRepository.sh" "${_DEFINITIONS}" readonly "${_REPOSITORY}" \
|
||||||
&& echo " - definitions are usable for this host." \
|
&& echo " - definitions are usable for this host." \
|
||||||
&& return 0
|
&& return 0
|
||||||
@@ -135,7 +134,6 @@ function addDefinition(){
|
|||||||
[ "$(id -u)" != "0" ] \
|
[ "$(id -u)" != "0" ] \
|
||||||
&& echo \
|
&& echo \
|
||||||
&& echo "Running setup as 'user' trying to add definition repository:" \
|
&& echo "Running setup as 'user' trying to add definition repository:" \
|
||||||
&& echo \
|
|
||||||
&& "${_CORE_SCRIPTS:?"Missing CORE_SCRIPTS"}addAndCheckGitRepository.sh" "${_DEFINITIONS}" writable "${_REPOSITORY}" \
|
&& "${_CORE_SCRIPTS:?"Missing CORE_SCRIPTS"}addAndCheckGitRepository.sh" "${_DEFINITIONS}" writable "${_REPOSITORY}" \
|
||||||
&& echo " - definitions are usable, as working copy." \
|
&& echo " - definitions are usable, as working copy." \
|
||||||
&& return 0
|
&& return 0
|
||||||
@@ -152,7 +150,6 @@ function addState() {
|
|||||||
[ "$(id -u)" == "0" ] \
|
[ "$(id -u)" == "0" ] \
|
||||||
&& echo \
|
&& echo \
|
||||||
&& echo "Running setup as 'root' trying to add state repository:" \
|
&& echo "Running setup as 'root' trying to add state repository:" \
|
||||||
&& echo \
|
|
||||||
&& "${_CORE_SCRIPTS:?"Missing CORE_SCRIPTS"}addAndCheckGitRepository.sh" "${_STATES}" writable "${_REPOSITORY}" \
|
&& "${_CORE_SCRIPTS:?"Missing CORE_SCRIPTS"}addAndCheckGitRepository.sh" "${_STATES}" writable "${_REPOSITORY}" \
|
||||||
&& echo " - states are usable for this host." \
|
&& echo " - states are usable for this host." \
|
||||||
&& return 0
|
&& return 0
|
||||||
@@ -160,7 +157,6 @@ function addState() {
|
|||||||
[ "$(id -u)" != "0" ] \
|
[ "$(id -u)" != "0" ] \
|
||||||
&& echo \
|
&& echo \
|
||||||
&& echo "Running setup as 'user' trying to add state repository:" \
|
&& echo "Running setup as 'user' trying to add state repository:" \
|
||||||
&& echo \
|
|
||||||
&& "${_CORE_SCRIPTS:?"Missing CORE_SCRIPTS"}addAndCheckGitRepository.sh" "${_STATES}" writable "${_REPOSITORY}" \
|
&& "${_CORE_SCRIPTS:?"Missing CORE_SCRIPTS"}addAndCheckGitRepository.sh" "${_STATES}" writable "${_REPOSITORY}" \
|
||||||
&& echo " - states are usable, as working copy." \
|
&& echo " - states are usable, as working copy." \
|
||||||
&& return 0
|
&& return 0
|
||||||
|
|||||||
Reference in New Issue
Block a user