forked from obel1x/fedora-OEMDRV
Fixed Bug in IPA-Key initial setup
This commit is contained in:
@@ -37,9 +37,6 @@ else
|
|||||||
#Get the Token from IPA
|
#Get the Token from IPA
|
||||||
echo Getting the Vault ${IPAVAULTNAME}
|
echo Getting the Vault ${IPAVAULTNAME}
|
||||||
ipa vault-retrieve ${IPAVAULTNAME} --out /var/tmp/IPAVAULTKEY.txt >/dev/null #TODO: Instead of /var/tmp use tmpfs for more security
|
ipa vault-retrieve ${IPAVAULTNAME} --out /var/tmp/IPAVAULTKEY.txt >/dev/null #TODO: Instead of /var/tmp use tmpfs for more security
|
||||||
if [ $? -ne 0 ]; then
|
|
||||||
echo "No Key found."
|
|
||||||
fi
|
|
||||||
if [ $? -ne 0 ]; then
|
if [ $? -ne 0 ]; then
|
||||||
echo "No Key found. Will try to Setup a new one."
|
echo "No Key found. Will try to Setup a new one."
|
||||||
ENCKEY=$( openssl rand -base64 24 )
|
ENCKEY=$( openssl rand -base64 24 )
|
||||||
|
|||||||
Reference in New Issue
Block a user