Commit 68d7a9a6 authored by k.elaammari's avatar k.elaammari
Browse files

missing check

parent 53234b60
......@@ -9,11 +9,13 @@ config=$openssl_base/config
pushd $openssl_base > /dev/null 2>&1
echo -n "Openssl-data directory already exist. Create new certificates ? [y/n]: "
read prompt
if ! [ "$prompt" != "${prompt#[Yy]}" ] ;then
echo "Abort."
exit
if [ -d $openssl_base/data ];then
echo -n "Openssl-data directory already exist. Create new certificates ? [y/n]: "
read prompt
if ! [ "$prompt" != "${prompt#[Yy]}" ] ;then
echo "Abort."
exit
fi
fi
# Create data directory
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment