install-eg.sh: fix incorrect test for whether files exist
[sitka/sitka-tools.git] / deployment / install-eg.sh
index f220eff..88a341a 100755 (executable)
@@ -64,7 +64,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
@@ -77,13 +77,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