Commit 61462a49 authored by Sebastien Gardoll's avatar Sebastien Gardoll
Browse files

create an empty esgf data directory if it doesn't exist

parent c0c1b45d
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -47,6 +47,12 @@ cp -R $SCRIPT_PARENT_DIR_PATH/../esgf_config/* $ESGF_CONFIG/.
# empty directory needed for CoG initialization
mkdir -p $ESGF_CONFIG/cog/cog_config

if [ ! -d $ESGF_DATA_DIR ]
then
   echo "Create an empty ESGF data directory at $ESGF_DATA_DIR"
   mkdir -p $ESGF_DATA_DIR
fi

# generate new certificates
echo ""
echo "Generating new self-signed certificates..."