start_searx.sh 311 B

12345678910111213
  1. #!/bin/bash
  2. set -eux
  3. if [[ -z "$(ls -A /app/data)" ]]; then
  4. echo "=> Detected first run"
  5. cp /app/code/searx/settings.yml.orig /app/data/settings.yml
  6. sed -i "s/127.0.0.1/0.0.0.0/g" /app/data/settings.yml
  7. fi
  8. chown -R www-data.www-data /app/data
  9. exec gosu www-data python /app/code/searx/webapp.py