Cancel configuration if certificate is invalid (ks-upv/upa/upf/upr)

This commit is contained in:
q3aql 2023-03-12 18:32:32 +01:00
parent f5f32b9208
commit faead28243
4 changed files with 8 additions and 0 deletions

View File

@ -677,6 +677,8 @@ function createConfig() {
echo "* PEM file copied to ${dirConfig}/connect.pem" echo "* PEM file copied to ${dirConfig}/connect.pem"
else else
echo "+ File ${pem_path} does not exist" echo "+ File ${pem_path} does not exist"
echo "+ The configuration is cancelled"
exit
fi fi
else else
raw_password_enter=${PASS} raw_password_enter=${PASS}

View File

@ -704,6 +704,8 @@ function createConfig() {
echo "* PEM file copied to ${dirConfig}/connect.pem" echo "* PEM file copied to ${dirConfig}/connect.pem"
else else
echo "+ File ${pem_path} does not exist" echo "+ File ${pem_path} does not exist"
echo "+ The configuration is cancelled"
exit
fi fi
else else
raw_password_enter=${PASS} raw_password_enter=${PASS}

View File

@ -563,6 +563,8 @@ function createConfig() {
echo "* PEM file copied to ${dirConfig}/connect.pem" echo "* PEM file copied to ${dirConfig}/connect.pem"
else else
echo "+ File ${pem_path} does not exist" echo "+ File ${pem_path} does not exist"
echo "+ The configuration is cancelled"
exit
fi fi
else else
raw_password_enter=${PASS} raw_password_enter=${PASS}

View File

@ -677,6 +677,8 @@ function createConfig() {
echo "* PEM file copied to ${dirConfig}/connect.pem" echo "* PEM file copied to ${dirConfig}/connect.pem"
else else
echo "+ File ${pem_path} does not exist" echo "+ File ${pem_path} does not exist"
echo "+ The configuration is cancelled"
exit
fi fi
else else
raw_password_enter=${PASS} raw_password_enter=${PASS}