install-osrf.sh: avoid chown on NFS shares on prod
authorJeff Davis <jdavis@sitka.bclibraries.ca>
Sun, 21 May 2017 04:32:33 +0000 (21:32 -0700)
committerJeff Davis <jdavis@sitka.bclibraries.ca>
Sun, 21 May 2017 04:32:33 +0000 (21:32 -0700)
deployment/install-osrf.sh

index 16ee489..84f136c 100755 (executable)
@@ -87,7 +87,9 @@ for PATHFILE in ${PATHFILES} ; do
   fi
 done
 chown ${DEFAULT_USER}:${DEFAULT_USER} /home/${DEFAULT_USER}/.bashrc
-chown -R opensrf:opensrf ${INSTALLDIR}
+if [[ ! -n "$PROD" ]] ; then
+  chown -R opensrf:opensrf ${INSTALLDIR}
+fi
  
 # as root, add the following two lines to /etc/hosts:
 #127.0.1.2     public.localhost        public