cyphernode proxy is now able to write files to user owned directories using su-exec

This commit is contained in:
jash
2018-10-10 00:50:55 +02:00
committed by kexkey
parent 2108930fb9
commit 78beb9d5cc
3 changed files with 23 additions and 7 deletions

View File

@@ -1,3 +1,18 @@
FROM alpine as builder
RUN set -x\
&& apk add --no-cache\
gcc\
make\
git\
musl-dev
RUN git clone https://github.com/ncopa/su-exec.git /su-exec
WORKDIR /su-exec
RUN make
RUN strip su-exec
FROM alpine
ENV HOME /proxy

View File

@@ -31,7 +31,7 @@ createCurlConfig() {
}
if [ ! -e ${DB_FILE} ]; then
echo "DB not found, creating..." 1>&2
echo "DB not found, creating..."
cat watching.sql | sqlite3 $DB_FILE
fi