Further checks and format

This commit is contained in:
m8in
2026-03-30 22:48:08 +02:00
parent 0cbdf5c29c
commit 0b003bc8e6
3 changed files with 16 additions and 4 deletions

View File

@@ -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

View 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

View File

@@ -127,7 +127,6 @@ function addDefinition(){
[ "$(id -u)" == "0" ] \
&& echo \
&& echo "Running setup as 'root' trying to add definition repository:" \
&& echo \
&& "${_CORE_SCRIPTS:?"Missing CORE_SCRIPTS"}addAndCheckGitRepository.sh" "${_DEFINITIONS}" readonly "${_REPOSITORY}" \
&& echo " - definitions are usable for this host." \
&& return 0
@@ -135,7 +134,6 @@ function addDefinition(){
[ "$(id -u)" != "0" ] \
&& echo \
&& echo "Running setup as 'user' trying to add definition repository:" \
&& echo \
&& "${_CORE_SCRIPTS:?"Missing CORE_SCRIPTS"}addAndCheckGitRepository.sh" "${_DEFINITIONS}" writable "${_REPOSITORY}" \
&& echo " - definitions are usable, as working copy." \
&& return 0
@@ -152,7 +150,6 @@ function addState() {
[ "$(id -u)" == "0" ] \
&& echo \
&& echo "Running setup as 'root' trying to add state repository:" \
&& echo \
&& "${_CORE_SCRIPTS:?"Missing CORE_SCRIPTS"}addAndCheckGitRepository.sh" "${_STATES}" writable "${_REPOSITORY}" \
&& echo " - states are usable for this host." \
&& return 0
@@ -160,7 +157,6 @@ function addState() {
[ "$(id -u)" != "0" ] \
&& echo \
&& echo "Running setup as 'user' trying to add state repository:" \
&& echo \
&& "${_CORE_SCRIPTS:?"Missing CORE_SCRIPTS"}addAndCheckGitRepository.sh" "${_STATES}" writable "${_REPOSITORY}" \
&& echo " - states are usable, as working copy." \
&& return 0