-
Notifications
You must be signed in to change notification settings - Fork 24
/
install_ubuntu2204.sh
52 lines (32 loc) · 1.21 KB
/
install_ubuntu2204.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
#!/bin/bash
set -e -u -x
OMEROVER=${OMEROVER:-latest}
PGVER=${PGVER:-pg15}
ICEVER=${ICEVER:-ice36}
. settings.env
bash -eux step01_ubuntu_init.sh
# disable daemon restart pop-up:
# see https://stackoverflow.com/questions/73397110/how-to-stop-ubuntu-pop-up-daemons-using-outdated-libraries-when-using-apt-to-i
if [ ! -f /.dockerenv ]; then
echo "\$nrconf{restart} = 'a';" >> /etc/needrestart/needrestart.conf
fi
# install java
bash -eux step01_ubuntu_java_deps.sh
bash -eux step01_ubuntu_deps.sh
# install ice
bash -eux step01_ubuntu2204_ice_deps.sh
cat omero-ice36.env >> /etc/profile
# install Postgres
bash -eux step01_ubuntu2204_pg_deps.sh
bash -eux step02_all_setup.sh
bash -eux step03_all_postgres.sh
cp settings.env step04_all_omero.sh setup_omero_db.sh ~omero-server
bash -eux step01_ubuntu2204_ice_venv.sh
bash -eux step04_all_omero_install.sh
su - omero-server -c "OMEROVER=$OMEROVER ICEVER=$ICEVER bash -eux step04_all_omero.sh"
su - omero-server -c "bash setup_omero_db.sh"
#If you don't want to use the init.d scripts you can start OMERO manually:
#su - omero-server -c ". /home/omero-server/settings.env omero admin start"
bash -eux step06_ubuntu_daemon.sh
bash -eux step07_all_perms.sh
#service omero start