This repository has been archived on 2023-11-03. You can view files and clone it, but cannot push or open issues or pull requests.
c4k-jira/infrastrucure/docker/image/resources/entrypoint.sh

13 lines
573 B
Bash
Raw Normal View History

2021-07-05 09:09:42 +00:00
#!/bin/bash
xmlstarlet ed -L -u "/Server/Service/Connector[@proxyName='{subdomain}.{domain}.com']/@proxyName" \
-v "$1" /opt/atlassian-jira-software-standalone/conf/server.xml
xmlstarlet ed -L -u "/jira-database-config/jdbc-datasource/username" \
-v "$2" /app/dbconfig.xml
xmlstarlet ed -L -u "/jira-database-config/jdbc-datasource/password" \
-v "$3" /app/dbconfig.xml
install -ojira -gjira -m660 /app/dbconfig.xml /var/jira/dbconfig.xml
/opt/atlassian-jira-software-standalone/bin/setenv.sh run
/opt/atlassian-jira-software-standalone/bin/start-jira.sh run