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