test
This commit is contained in:
parent
06c167ca15
commit
15b417cccd
@ -5,12 +5,12 @@ topgrade
|
||||
|
||||
nssdb_dir="/etc/ipa/nssdb"
|
||||
echo "Checking if Directory $nssdb_dir contains Membership to FreeIPA Realm"
|
||||
realm_join = 0
|
||||
realm_join=0
|
||||
if [ -d "$nssdb_dir" ]
|
||||
then
|
||||
if [ "$(ls -A $nssdb_dir)" ]; then
|
||||
echo "Directory $nssdb_dir is not Empty."
|
||||
realm_join = 1
|
||||
realm_join=1
|
||||
echo "ipa-client appears to already be joined to FreeIPA Server Realm"
|
||||
else
|
||||
echo "$nssdb_dir is Empty"
|
||||
@ -21,7 +21,7 @@ fi
|
||||
|
||||
if [[ $HOSTNAME == *template* ]]; then
|
||||
echo "Hostname $HOSTNAME contains the word 'template', skipping realm joining"
|
||||
realm_join = 0
|
||||
realm_join=0
|
||||
fi
|
||||
|
||||
if [ "$realm_join" == 1 ]; then
|
||||
|
||||
Loading…
Reference in New Issue
Block a user