summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfukachan <fukachan>2002-04-14 07:24:40 +0000
committerfukachan <fukachan>2002-04-14 07:24:40 +0000
commitdd72b2d79e8d4bd939e0c9f530bc6cbc3cc1d71b (patch)
treea56493c1278d22745cd559479a386e728e172678
parentfefd223d06673f20fe02cb887751bee9031eb7f6 (diff)
downloadfml8-dd72b2d79e8d4bd939e0c9f530bc6cbc3cc1d71b.tar.gz
fml8-dd72b2d79e8d4bd939e0c9f530bc6cbc3cc1d71b.tar.bz2
fml8-dd72b2d79e8d4bd939e0c9f530bc6cbc3cc1d71b.zip
check the existence of /var/spool/ml/elena/
-rwxr-xr-xregress/simulation/install.sh10
1 files changed, 6 insertions, 4 deletions
diff --git a/regress/simulation/install.sh b/regress/simulation/install.sh
index 333f1b1c..b8f35dc5 100755
--- a/regress/simulation/install.sh
+++ b/regress/simulation/install.sh
@@ -1,6 +1,6 @@
#!/bin/sh
#
-# $FML: install.sh,v 1.8 2001/12/11 15:52:12 fukachan Exp $
+# $FML: install.sh,v 1.9 2002/04/01 10:07:09 fukachan Exp $
#
(cd ../..; ./configure \
@@ -11,10 +11,12 @@
# config.cf
sudo -v
-echo updating /var/spool/ml/elena/config.cf
-cp /var/spool/ml/elena/config.cf /var/spool/ml/elena/config.cf.bak
-cp config.cf /var/spool/ml/elena/config.cf
+if [ -d /var/spool/ml/elena ];then
+ echo updating /var/spool/ml/elena/config.cf
+ cp /var/spool/ml/elena/config.cf /var/spool/ml/elena/config.cf.bak
+ cp config.cf /var/spool/ml/elena/config.cf
+fi
(cd ../../fml/etc/;sh .gen.sh)
sudo rm -f /etc/fml/main.cf