SITKA Public Git
/
sitka
/
sitka-tools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
f37d71d
)
install-osrf.sh: ensure EG bin path is in $PATH for default user
author
Jeff Davis
<jdavis@sitka.bclibraries.ca>
Wed, 24 Jun 2015 21:58:17 +0000
(14:58 -0700)
committer
Jeff Davis
<jdavis@sitka.bclibraries.ca>
Wed, 24 Jun 2015 21:58:17 +0000
(14:58 -0700)
deployment/install-osrf.sh
patch
|
blob
|
blame
|
history
diff --git
a/deployment/install-osrf.sh
b/deployment/install-osrf.sh
index
9dce10e
..
2035e4e
100755
(executable)
--- a/
deployment/install-osrf.sh
+++ b/
deployment/install-osrf.sh
@@
-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}