Skip to content
Snippets Groups Projects
Commit ad4b4c61 authored by Bob Mottram's avatar Bob Mottram
Browse files

Check directories

parent e7e69d48
No related branches found
No related tags found
No related merge requests found
......@@ -243,12 +243,11 @@ function install_keyserver {
cd $INSTALL_DIR/keyserver
git pull
else
if [ -d $INSTALL_DIR/keyserver ]; then
cd $INSTALL_DIR/keyserver
pull
else
git_clone $KEYSERVER_SKS_REPO $INSTALL_DIR/keyserver
fi
git_clone $KEYSERVER_SKS_REPO keyserver
fi
if [ ! -d $INSTALL_DIR/keyserver ]; then
echo $"$INSTALL_DIR/keyserver not found"
exit 835274
fi
cd $INSTALL_DIR/keyserver
......@@ -268,6 +267,10 @@ function install_keyserver {
else
git_clone $KEYSERVER_WEB_REPO htdocs
fi
if [ ! -d /var/www/$KEYSERVER_DOMAIN_NAME/htdocs ]; then
echo $"/var/www/$KEYSERVER_DOMAIN_NAME/htdocs not found"
exit 6539230
fi
cd /var/www/$KEYSERVER_DOMAIN_NAME/htdocs
git checkout $KEYSERVER_WEB_COMMIT -b $KEYSERVER_WEB_COMMIT
......
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