-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathentrypoint.sh
36 lines (32 loc) · 1.09 KB
/
entrypoint.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
#!/bin/bash
# Wait for Postgres to be up
sleep 5
# Give to koozic user the right to write in app volume
chown -R koozic /home/koozic/.local
# Initialize db (odoo automatically detects if db is already initialized)
echo "Initializing db..."
su - koozic -c "/usr/local/koozic/odoo-bin \
-d koozic-v2 \
--db_host=db \
--db_port=5432 \
--db_user=koozic \
--db_password=koozic \
-u oomusic,oovideo \
--without-demo=all \
--stop-after-init \
--log-level=warn"
echo "DB initialization done"
# Start koozic
su - koozic -c "/usr/local/koozic/odoo-bin \
--workers=4 \
--limit-time-cpu=1800 \
--limit-time-real=3600 \
-d koozic-v2 \
--db-filter=koozic-v2 \
--db_host=db \
--db_port=5432 \
--db_user=koozic \
--db_password=koozic \
--without-demo=all \
--no-database-list \
--log-level=warn"