Docker-DocumentServer icon indicating copy to clipboard operation
Docker-DocumentServer copied to clipboard

create_postgresql_tbl grep doesn't work

Open NorseGaud opened this issue 5 years ago • 3 comments

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.

NorseGaud avatar Feb 23 '20 00:02 NorseGaud

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

ShockwaveNN avatar Feb 23 '20 09:02 ShockwaveNN

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

chendelin1982 avatar Mar 24 '20 15:03 chendelin1982

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

ShockwaveNN avatar Mar 24 '20 15:03 ShockwaveNN