Skip to content

Commit

Permalink
fix(entrypoint.sh): parse config
Browse files Browse the repository at this point in the history
I'm using domain name with TLD "name" (i.e. `allowed_host1 = etesync.example.name`) and this result in false match and scary log output on container start:
```
2024-06-14T08:41:56+00:00 [Info] [Entrypoint]: Check permission of allowed_host1 = etesync.example.name
/data/db.sqlite3
2024-06-14T08:41:56+00:00 [Info] [Entrypoint]: allowed_host1 = etesync.example.name
/data/db.sqlite3 does not exist
```
  • Loading branch information
powerman authored and victor-rds committed Jun 14, 2024
1 parent 4eb0010 commit 66ff7ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion context/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ if [ -e "${ETEBASE_EASY_CONFIG_PATH}" ]; then
check_perms "$(grep secret_file "${ETEBASE_EASY_CONFIG_PATH}" | sed -e 's/secret_file = //g')"
check_perms "$(grep media_root "${ETEBASE_EASY_CONFIG_PATH}" | sed -e 's/media_root = //g')" 'w'
if grep sqlite3 "${ETEBASE_EASY_CONFIG_PATH}" >/dev/null; then
check_perms "$(grep name "${ETEBASE_EASY_CONFIG_PATH}" | sed -e 's/name = //g')" 'w'
check_perms "$(grep '^name = ' "${ETEBASE_EASY_CONFIG_PATH}" | sed -e 's/name = //g')" 'w'
fi
fi

Expand Down

0 comments on commit 66ff7ba

Please sign in to comment.