From b0047a836ba58e62b4b52baaa47b402b67b63d4e Mon Sep 17 00:00:00 2001 From: Stian Buch Larsen Date: Tue, 25 Aug 2015 15:23:50 +0200 Subject: [PATCH] Audit me!! --- Dockerfile | 4 +--- services/syncthing/run | 2 ++ 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 95788bd..fe5990c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,5 @@ FROM linuxserver/baseimage -MAINTAINER Your Name +MAINTAINER lonix #Applying stuff RUN curl -s https://syncthing.net/release-key.txt | sudo apt-key add - && \ @@ -7,13 +7,11 @@ echo deb http://apt.syncthing.net/ syncthing release | sudo tee /etc/apt/sources apt-get update -q && install syncthing && \ apt-get clean && rm -rf /tmp/* /var/lib/apt/lists/* /var/tmp/* - #Adding Custom files ADD init/ /etc/my_init.d/ ADD services/ /etc/service/ RUN chmod -v +x /etc/service/*/run && chmod -v +x /etc/my_init.d/*.sh - # Volumes and Ports VOLUME /config EXPOSE 8384 \ No newline at end of file diff --git a/services/syncthing/run b/services/syncthing/run index f5c3178..ecfc9f1 100644 --- a/services/syncthing/run +++ b/services/syncthing/run @@ -1,3 +1,5 @@ #!/bin/bash + umask 0000 + exec /sbin/setuser abc "syncthing -home=/config -no-browser -no-restart" \ No newline at end of file