-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathenv.sh
executable file
·69 lines (57 loc) · 1.7 KB
/
env.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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
if [ ! -f ./config/.env ]; then
cp ./config/example.env ./config/.env
fi
## Main
if [ -f ./config/.env ]; then
source ./config/.env
fi
## Backend
if [[ "${ENABLED_API}" == true && ! -f ./config/api/.env ]]
then
cp ./config/api/example.env ./config/api/.env
fi
## Realtime
if [[ "${ENABLED_REALTIME}" == true && ! -f ./config/realtime/.env ]]
then
cp ./config/realtime/example.env ./config/realtime/.env
fi
## Train Manager
if [[ "${ENABLED_TRAIN_MANAGER}" == true && ! -f ./config/train-manager/.env ]]
then
cp ./config/train-manager/example.env ./config/train-manager/.env
fi
## Frontend
if [[ "${ENABLED_UI}" == true && ! -f ./config/ui/.env ]]
then
cp ./config/ui/example.env ./config/ui/.env
fi
## Auth
if [[ "${AUTHUP_ENABLED}" == true && ! -f ./config/third-party/authup/.env ]]
then
cp ./config/third-party/authup/example.env ./config/third-party/authup/.env
fi
## DB
if [[ "${DB_ENABLED}" == true && ! -f ./config/third-party/db/.env ]]
then
cp ./config/third-party/db/example.env ./config/third-party/db/.env
fi
## MQ
if [[ "${MQ_ENABLED}" == true && ! -f ./config/third-party/mq/.env ]]
then
cp ./config/third-party/mq/example.env ./config/third-party/mq/.env
fi
## Minio
if [[ "${MINIO_ENABLED}" == true && ! -f ./config/third-party/minio/.env ]]
then
cp ./config/third-party/minio/example.env ./config/third-party/minio/.env
fi
## REDIS
if [[ "${REDIS_ENABLED}" == true && ! -f ./config/third-party/redis/.env ]]
then
cp ./config/third-party/redis/example.env ./config/third-party/redis/.env
fi
## VAULT
if [[ "${VAULT_ENABLED}" == true && ! -f ./config/third-party/vault/.env ]]
then
cp ./config/third-party/vault/example.env ./config/third-party/vault/.env
fi