Merge "Add error-handling for permission of /etc/octavia"

This commit is contained in:
Zuul 2019-04-14 21:52:05 +00:00 committed by Gerrit Code Review
commit bd07eada87
1 changed files with 8 additions and 0 deletions

View File

@ -41,7 +41,15 @@ echo $CERT_DIR
mkdir -p $CERT_DIR
cd $CERT_DIR
if [[ $? -ne 0 ]]; then
echo "Failed to change to $CERT_DIR. Check the existence and permission"
exit 1
fi
mkdir newcerts private
if [[ $? -ne 0 ]]; then
echo "Failed to create directories. Check the permission"
exit 1
fi
chmod 700 private
# prepare files