searx / searx-docker

Create a searx instance using Docker
GNU Affero General Public License v3.0
404 stars 67 forks source link

Replace sed separator with pipe #96

Closed chebro closed 3 years ago

chebro commented 3 years ago

Summary

base64 random key may contain the / character, which conflicts with the sed separator, using | as the separator fixes it.


Example error

searx-docker# sed -i "s/ReplaceWithARealKey\!/$(openssl rand -base64 33)/g" .env
sed: -e expression #1, char 53: unknown option to `s'

Example key that caused the error

qlhRzleI9oYXgHYn34eyV7LbHJP/Qsw+OLXqptd2Jq4i