install-eg.sh: fix incorrect test for whether files exist
authorJeff Davis <jdavis@sitka.bclibraries.ca>
Tue, 4 Mar 2014 21:36:46 +0000 (13:36 -0800)
committerJeff Davis <jdavis@sitka.bclibraries.ca>
Tue, 4 Mar 2014 21:36:46 +0000 (13:36 -0800)
deployment/install-eg.sh

index ff2aafe..70fe8b1 100755 (executable)
@@ -62,7 +62,7 @@ then
 fi
 
 # set up log rotation
-if [ ! -d "/etc/logrotate.d/evergreen" ]
+if [ ! -f "/etc/logrotate.d/evergreen" ]
 then
   cp ${SITKACONF}/files/etc/logrotate.d/evergreen/${HOSTNAME} /etc/logrotate.d/evergreen
 fi
@@ -75,13 +75,13 @@ do
   mv ${OSRFCONFFILE} ${OSRFCONFFILE}.bak
   cp ${SITKACONF}/files/${OSRFCONFFILE}/${HOSTNAME} ${OSRFCONFFILE}
 done
-if [ ! -d "${HOMEDIR}/.srfsh.xml" ]
+if [ ! -f "${HOMEDIR}/.srfsh.xml" ]
 then
   cp ${SITKACONF}/files/home/opensrf/.srfsh.xml/${HOSTNAME} ${HOMEDIR}/.srfsh.xml
 fi 
 
 # 1. install dojo
-if [ ! -d "/home/opensrf/dojo-release-1.3.3.tar.gz" ]
+if [ ! -f "/home/opensrf/dojo-release-1.3.3.tar.gz" ]
 then
   cd /home/opensrf && wget http://download.dojotoolkit.org/release-1.3.3/dojo-release-1.3.3.tar.gz
 fi