searxng-app/start.sh

14 lines
311 B
Bash
Raw Normal View History

2017-03-09 11:29:33 +00:00
#!/bin/bash
set -eux
if [[ -z "$(ls -A /app/data)" ]]; then
echo "=> Detected first run"
cp /app/code/searx/settings.yml.orig /app/data/settings.yml
sed -i "s/127.0.0.1/0.0.0.0/g" /app/data/settings.yml
fi
2017-03-11 03:32:08 +00:00
chown -R www-data.www-data /app/data
exec gosu www-data python /app/code/searx/webapp.py