From e1d382484eb3bf2eb82c430ecc479d3ccdecd5eb Mon Sep 17 00:00:00 2001 From: Joey Date: Sat, 11 Mar 2017 03:32:08 +0000 Subject: [PATCH] change user --- CloudronManifest.json | 2 +- Dockerfile | 6 ++++-- start.sh => start_searx.sh | 4 +++- 3 files changed, 8 insertions(+), 4 deletions(-) rename start.sh => start_searx.sh (71%) diff --git a/CloudronManifest.json b/CloudronManifest.json index 1ec51ae..893a2d4 100644 --- a/CloudronManifest.json +++ b/CloudronManifest.json @@ -5,7 +5,7 @@ "description": "file://DESCRIPTION.md", "changelog": "file://CHANGELOG", "tagline": "Privacy-respecting metasearch engine", - "version": "0.0.2", + "version": "0.0.3", "healthCheckPath": "/", "httpPort": 8888, "addons": { diff --git a/Dockerfile b/Dockerfile index 50dac4b..6ed7213 100644 --- a/Dockerfile +++ b/Dockerfile @@ -10,8 +10,10 @@ RUN curl -L https://github.com/asciimoo/searx/archive/master.tar.gz | tar -xz -- RUN mv /app/code/searx/settings.yml /app/code/searx/settings.yml.orig RUN ln -sf /app/data/settings.yml /app/code/searx/settings.yml +RUN chown -R www-data.www-data /app/code + EXPOSE 8888 -ADD start.sh /app/ +ADD start_searx.sh /app/ -CMD [ "/app/start.sh" ] +CMD [ "/app/start_searx.sh" ] diff --git a/start.sh b/start_searx.sh similarity index 71% rename from start.sh rename to start_searx.sh index 44e05ba..256fe1e 100755 --- a/start.sh +++ b/start_searx.sh @@ -8,4 +8,6 @@ if [[ -z "$(ls -A /app/data)" ]]; then sed -i "s/127.0.0.1/0.0.0.0/g" /app/data/settings.yml fi -exec python /app/code/searx/webapp.py +chown -R www-data.www-data /app/data + +exec gosu www-data python /app/code/searx/webapp.py