ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/BOSS/Examples/test.sh
Revision: 1.3
Committed: Fri Mar 10 18:40:37 2006 UTC (19 years, 1 month ago) by gcodispo
Content type: application/x-sh
Branch: MAIN
Changes since 1.2: +30 -9 lines
Log Message:
fixed configuration script

File Contents

# User Rev Content
1 elmer 1.1 #!/bin/sh
2 gcodispo 1.3 #
3     if [ -z $BOSSDIR ]; then
4     echo
5     echo "BOSS env not set"
6     echo "please run bossenv.[c]sh"
7     echo
8     exit
9     fi
10     #
11     # configure L&B database
12 elmer 1.1 cd $BOSSDIR
13     ./CONFIGDB
14     . bossenv.sh
15     bossAdmin configureDB
16 gcodispo 1.3 #
17     # register test program
18     cd $BOSSDIR/Examples
19 elmer 1.1 ./registerTestProgram
20 gcodispo 1.3 #
21     # register fork scheduler
22     cd $BOSSDIR/BossSched/bin
23 elmer 1.1 ./registerForkScheduler
24 gcodispo 1.3 #
25     # register mysql RTMon
26     if [ -f "$HOME/.bossrc/MySQLRTConfig.clad" ]; then
27     echo "Found previous MySQL RT configuration"
28     echo "Do you want to overwrite it? y/n? "
29     read ANSW
30     echo
31     if [ "$ANSW" = "y" ]; then
32     cd $BOSSDIR/BossRTMon/
33     ./CONFIGDB
34     fi
35     fi
36     #
37     #