add complete paths to EG & OpenSRF repo dirs
authorChris Sharp <csharp@georgialibraries.org>
Thu, 25 Jul 2019 18:19:43 +0000 (14:19 -0400)
committerChris Sharp <csharp@georgialibraries.org>
Sat, 10 Aug 2019 15:23:30 +0000 (11:23 -0400)
templates/setup-functions

index b8efadc..f5166f1 100755 (executable)
@@ -127,7 +127,7 @@ OSRF_REPODIR=$(echo $OSRF_GIT_URL | awk -F/ '{print $NF}' | sed -e 's/.git%//')
 DISTRONAME=ubuntu-xenial
 useradd -m -s /bin/bash opensrf
 su - opensrf -c git clone --branch $OSRF_GIT_BRANCH $OSRF_GIT_URL
-cd $OSRF_REPODIR
+cd /home/opensrf/$OSRF_REPODIR
 make -f src/extras/Makefile.install $DISTRONAME
 su - opensrf -c "cd $OSRF_REPODIR && autoreconf -i && ./configure --prefix=/openils --sysconfdir=/openils/conf && make"
 make install
@@ -138,7 +138,7 @@ InstallEvergreenfromGit () {
 EG_REPODIR=$(echo $EG_GIT_URL | awk -F/ '{print $NF}' | sed -e 's/.git%//')
 DISTRONAME=ubuntu-xenial
 su - opensrf -c git clone --branch $EG_GIT_BRANCH $EG_GIT_URL
-cd $EG_REPODIR
+cd /home/opensrf/$EG_REPODIR
 make -f src/extras/Makefile.install $DISTRONAME
 make -f src/extras/Makefile.install ${DISTRONAME}-developer
 su - opensrf -c "cd $EG_REPODIR/Open-ILS/web/js/ui/default/staff && npm install && npm run build-prod && npm run test"