21 lines
705 B
Bash
Executable file
21 lines
705 B
Bash
Executable file
#!/bin/sh
|
|
#
|
|
# curl -sSL https://git.codehal.de/steffen/docker-scripts/raw/branch/master/searx/install.sh | sh
|
|
#
|
|
export DEBIAN_FRONTEND=noninteractive
|
|
apt-get update && apt-get -y upgrade
|
|
apt-get -y --no-install-recommends install git docker.io docker-compose
|
|
systemctl enable docker
|
|
systemctl start docker
|
|
cd /usr/local/
|
|
git clone https://github.com/searx/searx-docker.git
|
|
cd searx-docker/
|
|
sed -iE "/SEARX_HOSTNAME/ s/^#\s*//" .env
|
|
sed -i "/SEARX_HOSTNAME/ s/=.*/=searx.codehal.de/" .env
|
|
sed -iE "/LETSENCRYPT_EMAIL/ s/^#\s*//" .env
|
|
sed -i "/LETSENCRYPT_EMAIL/ s/=.*/=webmaster@codehal.de/" .env
|
|
key=$(openssl rand -hex 22)
|
|
sed -i "/MORTY_KEY/ s/=.*/=$key/" .env
|
|
docker-compose pull
|
|
docker-compose up -d
|
|
|