Skip to content
Snippets Groups Projects
Commit ed1abd4d authored by Michiel de Jong's avatar Michiel de Jong
Browse files

check that the default cert exists before continuing

parent 8ef40ec5
No related branches found
No related tags found
No related merge requests found
......@@ -20,11 +20,14 @@ if [ $# -ge 4 ]; then
else
USER="core"
fi
if [ -e ../orchestration/per-server/$SERVER/default-site ]; then
DEFAULTSITE=`cat ../orchestration/per-server/$SERVER/default-site`
else
if [ -e "${FOLDER}server-wide/haproxy/approved-certs/${SERVER}.pem" ]; then
DEFAULTSITE=$SERVER
else
echo "Please make sure ${FOLDER}server-wide/haproxy/approved-certs/${SERVER}.pem exists, then retry"
exit 1
fi
echo "Hoster data folder is $FOLDER"
echo "Infrastructure branch is $BRANCH"
echo "Remote user is $USER"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment