Moved local dir to /opt/sys_config
Improved error logging and added function handling calls with log and return values Improved check for matching sudo rule
This commit is contained in:
@@ -19,6 +19,22 @@ if [ $? -eq 0 ]; then
|
||||
exit 0
|
||||
fi
|
||||
|
||||
if [ ${IPAVAULTUSE} == "false" ]; then
|
||||
#No encryption configured, will warn, but will continue
|
||||
echo "Warning: Encryption is turned off by configuration (IPAVAULTUSE is set to false)!"
|
||||
echo "This makes your private data readable by anyone having access to the harddrive. Will continue, but this is not safe!"
|
||||
echo
|
||||
mkdir -p ${DECRYPTEDDATADIR}
|
||||
RETNO=$?
|
||||
if [ ${RETNO} -eq 0 ]; then
|
||||
echo "Private Directory set to ${DECRYPTEDDATADIR}"
|
||||
else
|
||||
echo "Error setting up Directory ${DECRYPTEDDATADIR}"
|
||||
fi
|
||||
ENCKEY=""
|
||||
exit ${RETNO}
|
||||
fi
|
||||
|
||||
#Test for connectivity
|
||||
curl -I https://${SERVERFQDN_IPA}/ipa/session/json >/dev/null 2>&1
|
||||
if [ $? -ne 0 ]; then
|
||||
|
||||
Reference in New Issue
Block a user