[Fai-commit] r3238 - trunk/examples/simple/files/etc/rc2.d/S99fai-setup

fai-repository at svn.debian.org fai-repository at svn.debian.org
Wed Jan 11 17:41:22 UTC 2006


Author: lange
Date: 2006-01-11 17:41:22 +0000 (Wed, 11 Jan 2006)
New Revision: 3238

Modified:
   trunk/examples/simple/files/etc/rc2.d/S99fai-setup/FAISERVER
Log:
create directory before copying files


Modified: trunk/examples/simple/files/etc/rc2.d/S99fai-setup/FAISERVER
===================================================================
--- trunk/examples/simple/files/etc/rc2.d/S99fai-setup/FAISERVER	2006-01-11 17:35:16 UTC (rev 3237)
+++ trunk/examples/simple/files/etc/rc2.d/S99fai-setup/FAISERVER	2006-01-11 17:41:22 UTC (rev 3238)
@@ -6,11 +6,14 @@
 
 . /etc/fai/fai.conf
 
-[ -d "$FAI_CONFIGDIR/class" ] || cp -a /usr/share/doc/fai-doc/examples/simple/* $FAI_CONFIGDIR
+if [ ! -d "$FAI_CONFIGDIR/class" ]; then
+    mkdir -p $FAI_CONFIGDIR
+    cp -a /usr/share/doc/fai-doc/examples/simple/* $FAI_CONFIGDIR
+fi
 
 fai-setup 2>&1 | tee /var/log/fai-setup.log
 
-echo "Log files will be saved to /var/log/fai-setup.log"
+echo "Log files are saved to /var/log/fai-setup.log"
 
 # remove me
 rm $0




More information about the Fai-commit mailing list