2020-08-16 11:19:43 +00:00
|
|
|
#!/usr/bin/python3 -B
|
2019-08-12 04:39:19 +00:00
|
|
|
|
2021-05-05 03:29:16 +00:00
|
|
|
from entrypoint_helpers import env, gen_cfg, str2bool, exec_app
|
2019-08-12 04:39:19 +00:00
|
|
|
|
|
|
|
|
2019-11-20 09:54:04 +00:00
|
|
|
RUN_USER = env['run_user']
|
|
|
|
RUN_GROUP = env['run_group']
|
|
|
|
CONFLUENCE_INSTALL_DIR = env['confluence_install_dir']
|
|
|
|
CONFLUENCE_HOME = env['confluence_home']
|
2019-08-12 05:29:30 +00:00
|
|
|
|
2019-11-20 09:54:04 +00:00
|
|
|
gen_cfg('server.xml.j2', f'{CONFLUENCE_INSTALL_DIR}/conf/server.xml')
|
|
|
|
gen_cfg('seraph-config.xml.j2',
|
|
|
|
f'{CONFLUENCE_INSTALL_DIR}/confluence/WEB-INF/classes/seraph-config.xml')
|
|
|
|
gen_cfg('confluence-init.properties.j2',
|
|
|
|
f'{CONFLUENCE_INSTALL_DIR}/confluence/WEB-INF/classes/confluence-init.properties')
|
|
|
|
gen_cfg('confluence.cfg.xml.j2', f'{CONFLUENCE_HOME}/confluence.cfg.xml',
|
|
|
|
user=RUN_USER, group=RUN_GROUP, overwrite=False)
|
2019-08-13 01:33:49 +00:00
|
|
|
|
2021-05-05 03:29:16 +00:00
|
|
|
exec_app([f'{CONFLUENCE_INSTALL_DIR}/bin/start-confluence.sh', '-fg'], CONFLUENCE_HOME, name='Confluence')
|