Check directories

This commit is contained in:
Bob Mottram 2017-07-28 20:16:20 +01:00
parent e7e69d4877
commit ad4b4c61fd
1 changed files with 9 additions and 6 deletions

View File

@ -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