Ensure that clone happens

This commit is contained in:
Bob Mottram 2018-02-02 11:53:10 +00:00
parent 4f85a93b32
commit 1fbe08647a
1 changed files with 11 additions and 17 deletions

View File

@ -262,11 +262,6 @@ function install_edith {
EDITH_ONION_HOSTNAME=$(add_onion_service edith 80 ${EDITH_ONION_PORT})
if [ ! -d /var/www/$EDITH_DOMAIN_NAME/htdocs ]; then
mkdir -p /var/www/$EDITH_DOMAIN_NAME/htdocs
fi
if [ ! -d /var/www/$EDITH_DOMAIN_NAME/htdocs ]; then
if [ -d /repos/edith ]; then
mkdir /var/www/$EDITH_DOMAIN_NAME/htdocs
cp -r -p /repos/edith/. /var/www/$EDITH_DOMAIN_NAME/htdocs
@ -281,7 +276,6 @@ function install_edith {
echo $'Unable to clone edith repo'
exit 537593569
fi
fi
cd /var/www/$EDITH_DOMAIN_NAME/htdocs
git checkout $EDITH_COMMIT -b $EDITH_COMMIT