forked from Monty/GemStone_daemontools_setup
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetupAll.sh
executable file
·71 lines (64 loc) · 1.22 KB
/
setupAll.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
#!/bin/bash
if [ $UID -ne 0 ]; then
echo "You must be root to run this!"
exit
fi
# Get params
source config
echo "This script executes all daemontools setup scripts in the proper seauence."
echo "Type \"Y\" to confirm each step prior to execution. Type \"N\" to skip that step."
echo "NOTE: Make sure you have already installed GemStone/S and the the config file"
echo "in this directory contains appropriate settings:"
echo "#-------------------------------------------------------"
cat config
echo "#-------------------------------------------------------"
echo "Shall I continue? (Y/N)"
read cont
case "$cont" in
y|Y|yes)
;;
*)
echo "Not continuing"
exit
;;
esac
echo ""
./copySeasideScripts
#
echo ""
case "$SEASIDE_VERSION" in
3.0)
./daemontools_setup 3.0
;;
2.8)
./daemontools_setup 2.8
;;
*)
echo "SEASIDE_VERSION in the config file is $SEASIDE_VERSION"
echo "it must be either 3.0 or 2.8"
;;
esac
#
echo ""
./bootGemstone_setup
#
echo ""
case "$LIGHTTPD_SETUP" in
YES)
./lighttpd_setup
;;
*)
echo "./lighttpd_setup skipped ..."
;;
esac
#
echo ""
./daemontools_start
#
echo ""
./bootGemstone_start
#
echo ""
bin/gemstone_start
# Success
exit 0