install-osrf.sh: ensure EG bin path is in $PATH for default user
[sitka/sitka-tools.git] / 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}