File tree Expand file tree Collapse file tree
ext/central-controller-docker Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -24,6 +24,9 @@ if [ -z "$ZT_DB_PASSWORD" ]; then
2424 echo ' *** FAILED: ZT_DB_PASSWORD environment variable not defined'
2525 exit 1
2626fi
27+ if [ -z " $ZT_DB_TYPE " ]; then
28+ ZT_DB=" postgres"
29+ fi
2730
2831REDIS=" "
2932if [ " $ZT_USE_REDIS " == " true" ]; then
@@ -70,7 +73,7 @@ APP_NAME="controller-$(cat /var/lib/zerotier-one/identity.public | cut -d ':' -f
7073
7174echo " {
7275 \" settings\" : {
73- \" controllerDbPath\" : \" postgres :host=${ZT_DB_HOST} port=${ZT_DB_PORT} dbname=${ZT_DB_NAME} user=${ZT_DB_USER} password=${ZT_DB_PASSWORD} application_name=${APP_NAME} sslmode=prefer sslcert=${DB_CLIENT_CERT} sslkey=${DB_CLIENT_KEY} sslrootcert=${DB_SERVER_CA} \" ,
76+ \" controllerDbPath\" : \" ${ZT_DB_TYPE} :host=${ZT_DB_HOST} port=${ZT_DB_PORT} dbname=${ZT_DB_NAME} user=${ZT_DB_USER} password=${ZT_DB_PASSWORD} application_name=${APP_NAME} sslmode=prefer sslcert=${DB_CLIENT_CERT} sslkey=${DB_CLIENT_KEY} sslrootcert=${DB_SERVER_CA} \" ,
7477 \" portMappingEnabled\" : true,
7578 \" softwareUpdate\" : \" disable\" ,
7679 \" interfacePrefixBlacklist\" : [
You can’t perform that action at this time.
0 commit comments