1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2024-12-01 12:24:28 +01:00
fab-manager/docker/setup.sh

24 lines
1005 B
Bash
Raw Normal View History

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"
# fab-manager environment variables
\curl -sSL https://raw.githubusercontent.com/LaCasemate/fab-manager/master/docker/env.example > "$FABMANAGER_PATH/example/env.example"
# nginx configuration
\curl -sSL https://raw.githubusercontent.com/LaCasemate/fab-manager/master/docker/nginx_with_ssl.conf.example > "$FABMANAGER_PATH/example/nginx_with_ssl.conf.example"
\curl -sSL https://raw.githubusercontent.com/LaCasemate/fab-manager/master/docker/nginx.conf.example > "$FABMANAGER_PATH/example/nginx.conf.example"
# let's encrypt configuration
\curl -sSL https://raw.githubusercontent.com/LaCasemate/fab-manager/master/docker/webroot.ini.example > "$FABMANAGER_PATH/example/webroot.ini.example"
# docker-compose
\curl -sSL https://raw.githubusercontent.com/LaCasemate/fab-manager/master/docker/docker-compose.yml > "$FABMANAGER_PATH/docker-compose.yml"
2017-12-14 11:58:23 +01:00
}
prepare_config "$@"