Replace sed separator with pipe (#96)

- base64 random key may contain the `/`  character, which conflicts with the sed separator, using `|` as the separator fixes it
This commit is contained in:
Chebro 2021-06-28 21:11:12 +05:30 committed by GitHub
parent d4e4f30de8
commit 276f88394a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -21,7 +21,7 @@ cd /usr/local
git clone https://github.com/searx/searx-docker.git git clone https://github.com/searx/searx-docker.git
cd searx-docker cd searx-docker
``` ```
- Generate MORTY_KEY ```sed -i "s/ReplaceWithARealKey\!/$(openssl rand -base64 33)/g" .env``` - Generate MORTY_KEY ```sed -i "s|ReplaceWithARealKey\!|$(openssl rand -base64 33)|g" .env```
- Edit the other settings in [.env](https://github.com/searx/searx-docker/blob/master/.env) file according to your need - Edit the other settings in [.env](https://github.com/searx/searx-docker/blob/master/.env) file according to your need
- Check everything is working: ```./start.sh```, - Check everything is working: ```./start.sh```,
- ```cp searx-docker.service.template searx-docker.service``` - ```cp searx-docker.service.template searx-docker.service```