-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathinstallSeaside30
executable file
·67 lines (52 loc) · 1.39 KB
/
installSeaside30
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
#!/bin/bash
# Find out where files are located
source config
source $GEMSTONE_CONFIG
echo "`basename $0` loads Seaside 3.0 into a GemStone/S system that"
echo "does not have Seaside installed. It stops any running gems first."
echo "Shall I continue? (Y/N)"
read cont
case "$cont" in
y|Y|yes)
;;
*)
echo "Not continuing"
exit
;;
esac
# Stop Topaz, but make sure Stone is running.
sudo /etc/init.d/topaz stop
sudo /etc/init.d/gemstone start
if [ -s $GEMSTONE/seaside/etc/gemstone.secret ]; then
. $GEMSTONE/seaside/etc/gemstone.secret
else
echo 'Missing password file $GEMSTONE/seaside/etc/gemstone.secret'
exit 1
fi
$GEMSTONE/bin/topaz -l -T50000 <<-EOF
set user DataCurator pass $GEMSTONE_CURATOR_PASS gems $GEMSTONE_NAME
iferror where
login
run
| autoCommit|
autoCommit := MCPlatformSupport autoCommit.
MCPlatformSupport autoCommit: true. "needed if loading from Topaz"
MCPlatformSupport commitOnAlmostOutOfMemoryDuring: [[
Gofer project load: 'Seaside30'version: '3.0.0-rc.1'
group: #( 'ALL').
Gofer project load: 'Pier2' version: '2.0.6' group: 'ALL'.
Gofer project load: 'PierAddOns2' version: '2.0.6'
group: 'ALL'.
]
on: Warning
do: [:ex |
Transcript cr; show: ex description.
ex resume ]].
MCPlatformSupport autoCommit: autoCommit.
%
logout
errorCount
EOF
sudo /etc/init.d/topaz start
# Success
exit 0