2017-12-14 11:58:23 +01:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
prepare_config()
|
|
|
|
{
|
2017-12-14 12:02:50 +01:00
|
|
|
FABMANAGER_PATH=${1:-/apps/fabmanager}
|
2017-12-14 11:58:23 +01:00
|
|
|
|
|
|
|
mkdir -p "$FABMANAGER_PATH/example"
|
2018-12-03 16:06:08 +01:00
|
|
|
mkdir -p "$FABMANAGER_PATH/elasticsearch/config"
|
2017-12-14 11:58:23 +01:00
|
|
|
|
|
|
|
# fab-manager environment variables
|
2019-03-26 14:04:45 +01:00
|
|
|
\curl -sSL https://raw.githubusercontent.com/sleede/fab-manager/master/docker/env.example > "$FABMANAGER_PATH/example/env.example"
|
2017-12-14 11:58:23 +01:00
|
|
|
|
|
|
|
# nginx configuration
|
2019-03-26 14:04:45 +01:00
|
|
|
\curl -sSL https://raw.githubusercontent.com/sleede/fab-manager/master/docker/nginx_with_ssl.conf.example > "$FABMANAGER_PATH/example/nginx_with_ssl.conf.example"
|
|
|
|
\curl -sSL https://raw.githubusercontent.com/sleede/fab-manager/master/docker/nginx.conf.example > "$FABMANAGER_PATH/example/nginx.conf.example"
|
2017-12-14 11:58:23 +01:00
|
|
|
|
|
|
|
# let's encrypt configuration
|
2019-03-26 14:04:45 +01:00
|
|
|
\curl -sSL https://raw.githubusercontent.com/sleede/fab-manager/master/docker/webroot.ini.example > "$FABMANAGER_PATH/example/webroot.ini.example"
|
2017-12-14 11:58:23 +01:00
|
|
|
|
2018-12-03 16:06:08 +01:00
|
|
|
# ElasticSearch configuration files
|
2019-03-26 14:04:45 +01:00
|
|
|
\curl -sSL https://raw.githubusercontent.com/sleede/fab-manager/master/docker/elasticsearch.yml > "$FABMANAGER_PATH/elasticsearch/config/elasticsearch.yml"
|
|
|
|
\curl -sSL https://raw.githubusercontent.com/sleede/fab-manager/master/docker/log4j2.properties > "$FABMANAGER_PATH/elasticsearch/config/log4j2.properties"
|
2018-12-03 16:06:08 +01:00
|
|
|
|
2017-12-14 11:58:23 +01:00
|
|
|
# docker-compose
|
2019-03-26 14:04:45 +01:00
|
|
|
\curl -sSL https://raw.githubusercontent.com/sleede/fab-manager/master/docker/docker-compose.yml > "$FABMANAGER_PATH/docker-compose.yml"
|
2017-12-14 11:58:23 +01:00
|
|
|
}
|
|
|
|
|
2017-12-28 19:29:44 +01:00
|
|
|
prepare_config "$@"
|