@@ -142,16 +142,16 @@ export DATABASE_SCHEME="$DB_SCHEME"
142142
143143# Set secrets needed by Strapi, if they are not set
144144# Prefer setting these as project secret variables with {{% vendor/cli %}} variable:create env:SECRET_NAME --sensitive=true
145- if [[ -z " $ADMIN_JWT_SECRET " ] ]; then
145+ if [ -z " $ADMIN_JWT_SECRET " ]; then
146146 export ADMIN_JWT_SECRET=" $PLATFORM_PROJECT_ENTROPY "
147147fi
148- if [[ -z " $JWT_SECRET " ] ]; then
148+ if [ -z " $JWT_SECRET " ]; then
149149 export JWT_SECRET=" $PLATFORM_PROJECT_ENTROPY "
150150fi
151- if [[ -z " $API_TOKEN_SALT " ] ]; then
151+ if [ -z " $API_TOKEN_SALT " ]; then
152152 export API_TOKEN_SALT=" $PLATFORM_PROJECT_ENTROPY "
153153fi
154- if [[ -z " $APP_KEYS " ] ]; then
154+ if [ -z " $APP_KEYS " ]; then
155155 export APP_KEYS=" $PLATFORM_PROJECT_ENTROPY "
156156fi
157157```
@@ -168,21 +168,21 @@ title=PostgreSQL
168168``` bash {location=".environment"}
169169# Set secrets needed by Strapi, if they are not set
170170# Prefer setting these as project secret variables with {{% vendor/cli %}} variable:create env:SECRET_NAME --sensitive=true
171- if [[ -z " $ADMIN_JWT_SECRET " ] ]; then
171+ if [ -z " $ADMIN_JWT_SECRET " ]; then
172172 export ADMIN_JWT_SECRET=" $PLATFORM_PROJECT_ENTROPY "
173173fi
174- if [[ -z " $JWT_SECRET " ] ]; then
174+ if [ -z " $JWT_SECRET " ]; then
175175 export JWT_SECRET=" $PLATFORM_PROJECT_ENTROPY "
176176fi
177- if [[ -z " $API_TOKEN_SALT " ] ]; then
177+ if [ -z " $API_TOKEN_SALT " ]; then
178178 export API_TOKEN_SALT=" $PLATFORM_PROJECT_ENTROPY "
179179fi
180- if [[ -z " $APP_KEYS " ] ]; then
180+ if [ -z " $APP_KEYS " ]; then
181181 export APP_KEYS=" $PLATFORM_PROJECT_ENTROPY "
182182fi
183183
184184# Switch to configure to the production database service _only_ at deploy time.
185- if [[ -z " $PLATFORM_ENVIRONMENT " ] ]; then
185+ if [ -z " $PLATFORM_ENVIRONMENT " ]; then
186186 export DATABASE_CLIENT=" postgres"
187187fi
188188```
@@ -194,21 +194,21 @@ title=Oracle MySQL
194194``` bash {location=".environment"}
195195# Set secrets needed by Strapi, if they are not set
196196# Prefer setting these as project secret variables with {{% vendor/cli %}} variable:create env:SECRET_NAME --sensitive=true
197- if [[ -z " $ADMIN_JWT_SECRET " ] ]; then
197+ if [ -z " $ADMIN_JWT_SECRET " ]; then
198198 export ADMIN_JWT_SECRET=" $PLATFORM_PROJECT_ENTROPY "
199199fi
200- if [[ -z " $JWT_SECRET " ] ]; then
200+ if [ -z " $JWT_SECRET " ]; then
201201 export JWT_SECRET=" $PLATFORM_PROJECT_ENTROPY "
202202fi
203- if [[ -z " $API_TOKEN_SALT " ] ]; then
203+ if [ -z " $API_TOKEN_SALT " ]; then
204204 export API_TOKEN_SALT=" $PLATFORM_PROJECT_ENTROPY "
205205fi
206- if [[ -z " $APP_KEYS " ] ]; then
206+ if [ -z " $APP_KEYS " ]; then
207207 export APP_KEYS=" $PLATFORM_PROJECT_ENTROPY "
208208fi
209209
210210# Switch to configure to the production database service _only_ at deploy time.
211- if [[ -z " $PLATFORM_ENVIRONMENT " ] ]; then
211+ if [ -z " $PLATFORM_ENVIRONMENT " ]; then
212212 export DATABASE_CLIENT=" mysql"
213213fi
214214```
0 commit comments