install-osrf.sh: ensure EG bin path is in $PATH for default user
authorJeff Davis <jdavis@sitka.bclibraries.ca>
Wed, 24 Jun 2015 21:58:17 +0000 (14:58 -0700)
committerJeff Davis <jdavis@sitka.bclibraries.ca>
Wed, 24 Jun 2015 21:58:17 +0000 (14:58 -0700)
deployment/install-osrf.sh

index 9dce10e..2035e4e 100755 (executable)
@@ -53,7 +53,7 @@ su -c "cd ${BUILDDIR} && make" ${DEFAULT_USER}
 echo "Installing OpenSRF..."
 cd ${BUILDDIR} && make install
 useradd -m -s /bin/bash opensrf
-PATHFILES="/etc/profile /root/.bashrc /home/opensrf/.bashrc"
+PATHFILES="/etc/profile /root/.bashrc /home/${DEFAULT_USER}/.bashrc /home/opensrf/.bashrc"
 for PATHFILE in ${PATHFILES} ; do
   if [[ -e "${PATHFILE}" && ! `egrep "PATH=.*${INSTALLDIR}/bin" "${PATHFILE}"` ]] ; then 
     echo "export PATH=${INSTALLDIR}/bin:\$PATH" >> ${PATHFILE}