[GH-ISSUE #227] create_postgresql_tbl grep doesn't work #124

Closed
opened 2026-02-26 09:36:43 +03:00 by kerem · 5 comments
Owner

Originally created by @NorseGaud on GitHub (Feb 23, 2020).
Original GitHub issue: https://github.com/ONLYOFFICE/Docker-DocumentServer/issues/227

github.com/ONLYOFFICE/Docker-DocumentServer@8e1a52566f/run-document-server.sh (L245)

This line doesn't work. It throws

Usage: grep [OPTION]... PATTERN [FILE]...
Try 'grep --help' for more information.

I've modified it locally to:
if $PSQL -lt | cut -d\| -f 1 | grep -qw $POSTGRESQL_SERVER_DB_NAME | grep 0; then
This seems to work just fine.

Originally created by @NorseGaud on GitHub (Feb 23, 2020). Original GitHub issue: https://github.com/ONLYOFFICE/Docker-DocumentServer/issues/227 https://github.com/ONLYOFFICE/Docker-DocumentServer/blob/8e1a52566f6edcb74ff5d458dd27c46e90139277/run-document-server.sh#L245 This line doesn't work. It throws ``` Usage: grep [OPTION]... PATTERN [FILE]... Try 'grep --help' for more information. ``` I've modified it locally to: `if $PSQL -lt | cut -d\| -f 1 | grep -qw $POSTGRESQL_SERVER_DB_NAME | grep 0; then` This seems to work just fine.
kerem 2026-02-26 09:36:43 +03:00
Author
Owner

@ShockwaveNN commented on GitHub (Feb 23, 2020):

Can confirm this issue with this command:

docker run -itd -p 80:80 -e POSTGRESQL_SERVER_HOST='x.x.x.x' -e POSTGRESQL_SERVER_PORT=5432 -e POSTGRESQL_SERVER_DB_NAME='db_name' -e POSTGRESQL_SERVER_USER='user_name' -e POSTGRESQL_SERVER_PASS='server_pass' -v /opt/onlyoffice/Data:/var/www/onlyoffice/Data onlyoffice/documentserver

And confirm that even so - everything seems fine

<!-- gh-comment-id:590049086 --> @ShockwaveNN commented on GitHub (Feb 23, 2020): Can confirm this issue with this command: ``` docker run -itd -p 80:80 -e POSTGRESQL_SERVER_HOST='x.x.x.x' -e POSTGRESQL_SERVER_PORT=5432 -e POSTGRESQL_SERVER_DB_NAME='db_name' -e POSTGRESQL_SERVER_USER='user_name' -e POSTGRESQL_SERVER_PASS='server_pass' -v /opt/onlyoffice/Data:/var/www/onlyoffice/Data onlyoffice/documentserver ``` And confirm that even so - everything seems fine
Author
Owner

@chendelin1982 commented on GitHub (Mar 24, 2020):

docker-compose.yml need to add POSTGRESQL_SERVER_PASS='server_pass'

<!-- gh-comment-id:603291022 --> @chendelin1982 commented on GitHub (Mar 24, 2020): docker-compose.yml need to add POSTGRESQL_SERVER_PASS='server_pass'
Author
Owner

@ShockwaveNN commented on GitHub (Mar 24, 2020):

@chendelin1982 Agree, since this is unrelated issue - I created a new one
https://github.com/ONLYOFFICE/Docker-DocumentServer/issues/234

<!-- gh-comment-id:603327676 --> @ShockwaveNN commented on GitHub (Mar 24, 2020): @chendelin1982 Agree, since this is unrelated issue - I created a new one https://github.com/ONLYOFFICE/Docker-DocumentServer/issues/234
Author
Owner

@igwyd commented on GitHub (Nov 7, 2024):

The issue doesn't repeat, let's close this.

<!-- gh-comment-id:2461425474 --> @igwyd commented on GitHub (Nov 7, 2024): The issue doesn't repeat, let's close this.
Author
Owner

@Rita-Bubnova commented on GitHub (Nov 7, 2024):

I close this issue. Feel free to comment or reopen it if you got further questions.

<!-- gh-comment-id:2461560914 --> @Rita-Bubnova commented on GitHub (Nov 7, 2024): I close this issue. Feel free to comment or reopen it if you got further questions.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/Docker-DocumentServer-ONLYOFFICE#124
No description provided.