-
Notifications
You must be signed in to change notification settings - Fork 5
/
UPGRADE
54 lines (40 loc) · 1.34 KB
/
UPGRADE
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
Perform the following steps after updating your installation (using
git-pull or whatever).
Fetch and install webgui dependencies:
cd ~/get-evidence
make install
Upgrade database tables by running:
cd ~/get-evidence
./upgrade.php
Check other runtime dependencies (see INSTALL; especially the note re.
multiprocessing for python < 2.6)
Run install-user.sh -- it might need to download new data files.
(
cd ~/get-evidence/server/script/
source config-local.sh
sudo -u $USER ./install-user.sh
)
Run make daily -- there may be new regularly updated files the server expects.
(
cd ~/get-evidence/
make daily
)
Replace back-end server if necessary (renamed to be "genome-analyzer" using
genome_analyzer.py instead of "trait-o-matic-server"):
cd ~/get-evidence/server/script
sudo su
/etc/init.d/trait-o-matic stop
rm /etc/init.d/trait-o-matic
update-rc.d -f trait-o-matic remove
source defaults.sh
perl -p -e 's/%([A-Z]+)%/$ENV{$1}/g' \
< $SOURCE/server/script/genome-analyzer.in \
> /etc/init.d/genome-analyzer.tmp
chmod 755 /etc/init.d/genome-analyzer.tmp
chown 0:0 /etc/init.d/genome-analyzer.tmp
mv /etc/init.d/genome-analyzer.tmp /etc/init.d/genome-analyzer
update-rc.d genome-analyzer start 20 2 3 4 5 . stop 80 0 1 6 .
exit
Restart the back-end server.
sudo /etc/init.d/genome-analyzer restart
Try processing some data.