Skip to content

Commit 475c3f6

Browse files
committed
Fix: add debug explicitly to ords docker-compose and remove it from .env as it causes trouble with SQLcl
1 parent fc0bea9 commit 475c3f6

File tree

4 files changed

+16
-4
lines changed

4 files changed

+16
-4
lines changed

docker-compose.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ services:
3232
restart: no
3333
env_file:
3434
- ./.env
35+
environment:
36+
- DEBUG=true
3537
depends_on:
3638
23ai:
3739
condition: service_healthy

docs/src/content/docs/migrations/25-3.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,6 @@ echo "DBSERVICENAME=\"FREEPDB1\"" >>.env
7474
echo "DBHOST=\"23ai\"" >>.env
7575
echo "DBPORT=\"1521\"" >>.env
7676
echo "FORCE_SECURE=\"false\"" >>.env
77-
echo "DEBUG=\"true\"" >>.env
7877
```
7978

8079
### Stop the containers
@@ -137,3 +136,14 @@ end;
137136
docker image ls
138137
docker image rm {image_name}
139138
```
139+
140+
## Hotfix: DEBUG env var
141+
142+
<Aside type="caution">In the first version of this migration I added `DEBUG=TRUE` to the `.env` file.
143+
144+
Please remove this line from your `.env` file if it exists, as it messed up SQLcl scripts.
145+
</Aside>
146+
147+
(The new SQLcl version also uses this variable to output debug information. As some scripts read the output of SQLcl, it can cause issues.)
148+
149+
If you don't have it in your `.env` file, you can proceed without any changes.

scripts/util/user-exists-in-db.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,9 @@ user_exists_in_db() {
77
fi
88

99
local USERNAME=$1
10-
local count=$(
11-
sql -S -name $DB_CONN_NAME <<SQL
10+
local count
11+
count=$(
12+
sql -S -name "$DB_CONN_NAME" <<SQL
1213
SET HEADING OFF
1314
SET FEEDBACK OFF
1415
SET PAGESIZE 0

setup.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ echo "DBSERVICENAME=\"FREEPDB1\"" >>.env
2424
echo "DBHOST=\"23ai\"" >>.env
2525
echo "DBPORT=\"1521\"" >>.env
2626
echo "FORCE_SECURE=\"false\"" >>.env
27-
echo "DEBUG=\"true\"" >>.env
2827

2928
echo "Created .env file"
3029

0 commit comments

Comments
 (0)