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 cd $INSTALL_DIR/keyserver
git pull git pull
else else
if [ -d $INSTALL_DIR/keyserver ]; then git_clone $KEYSERVER_SKS_REPO keyserver
cd $INSTALL_DIR/keyserver fi
pull if [ ! -d $INSTALL_DIR/keyserver ]; then
else echo $"$INSTALL_DIR/keyserver not found"
git_clone $KEYSERVER_SKS_REPO $INSTALL_DIR/keyserver exit 835274
fi
fi fi
cd $INSTALL_DIR/keyserver cd $INSTALL_DIR/keyserver
@ -268,6 +267,10 @@ function install_keyserver {
else else
git_clone $KEYSERVER_WEB_REPO htdocs git_clone $KEYSERVER_WEB_REPO htdocs
fi 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 cd /var/www/$KEYSERVER_DOMAIN_NAME/htdocs
git checkout $KEYSERVER_WEB_COMMIT -b $KEYSERVER_WEB_COMMIT git checkout $KEYSERVER_WEB_COMMIT -b $KEYSERVER_WEB_COMMIT