@@ -37,6 +37,10 @@ if [ "${#MISSING_TOOLS[@]}" -gt 0 ]; then
...
@@ -37,6 +37,10 @@ if [ "${#MISSING_TOOLS[@]}" -gt 0 ]; then
exit 1
exit 1
fi
fi
# Silence standard messages but not errors
# (ipa ping prints "IPA server version X. API version Y" on success)
ipa ping > /dev/null ||{printf"\nFreeIPA connection check (ipa ping) failed. Do you have a valid kerberos ticket? (run klist to check, or kinit get a new ticket). See previous errors for details.\n" | fold--spaces;exit 1;}
cd"${BASH_SOURCE[0]%/*}"||{echo"Failed to change working directory to script dir";exit 1;}
cd"${BASH_SOURCE[0]%/*}"||{echo"Failed to change working directory to script dir";exit 1;}