Skip to content

Commit 8efc9c1

Browse files
authored
Merge pull request #4883 from platformsh/pr/remove-strapi-bashisms
strapi: remove unnecessary bashism
2 parents 68f6774 + d295241 commit 8efc9c1

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

sites/upsun/src/get-started/stacks/strapi/add-database.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -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"
147147
fi
148-
if [[ -z "$JWT_SECRET" ]]; then
148+
if [ -z "$JWT_SECRET" ]; then
149149
export JWT_SECRET="$PLATFORM_PROJECT_ENTROPY"
150150
fi
151-
if [[ -z "$API_TOKEN_SALT" ]]; then
151+
if [ -z "$API_TOKEN_SALT" ]; then
152152
export API_TOKEN_SALT="$PLATFORM_PROJECT_ENTROPY"
153153
fi
154-
if [[ -z "$APP_KEYS" ]]; then
154+
if [ -z "$APP_KEYS" ]; then
155155
export APP_KEYS="$PLATFORM_PROJECT_ENTROPY"
156156
fi
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"
173173
fi
174-
if [[ -z "$JWT_SECRET" ]]; then
174+
if [ -z "$JWT_SECRET" ]; then
175175
export JWT_SECRET="$PLATFORM_PROJECT_ENTROPY"
176176
fi
177-
if [[ -z "$API_TOKEN_SALT" ]]; then
177+
if [ -z "$API_TOKEN_SALT" ]; then
178178
export API_TOKEN_SALT="$PLATFORM_PROJECT_ENTROPY"
179179
fi
180-
if [[ -z "$APP_KEYS" ]]; then
180+
if [ -z "$APP_KEYS" ]; then
181181
export APP_KEYS="$PLATFORM_PROJECT_ENTROPY"
182182
fi
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"
187187
fi
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"
199199
fi
200-
if [[ -z "$JWT_SECRET" ]]; then
200+
if [ -z "$JWT_SECRET" ]; then
201201
export JWT_SECRET="$PLATFORM_PROJECT_ENTROPY"
202202
fi
203-
if [[ -z "$API_TOKEN_SALT" ]]; then
203+
if [ -z "$API_TOKEN_SALT" ]; then
204204
export API_TOKEN_SALT="$PLATFORM_PROJECT_ENTROPY"
205205
fi
206-
if [[ -z "$APP_KEYS" ]]; then
206+
if [ -z "$APP_KEYS" ]; then
207207
export APP_KEYS="$PLATFORM_PROJECT_ENTROPY"
208208
fi
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"
213213
fi
214214
```

0 commit comments

Comments
 (0)