From c74ff6079494ddb866f5fb2a20aed9e0966b3b3a Mon Sep 17 00:00:00 2001 From: Pascal Vizeli Date: Fri, 21 Jul 2017 15:25:34 +0200 Subject: [PATCH] Nmbd samba (#145) * Update config.json * Update Dockerfile * Update config.json * Update run.sh --- samba/Dockerfile | 2 +- samba/config.json | 4 ++-- samba/run.sh | 1 + 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/samba/Dockerfile b/samba/Dockerfile index 6229273..9c9f0a6 100644 --- a/samba/Dockerfile +++ b/samba/Dockerfile @@ -4,7 +4,7 @@ FROM %%BASE_IMAGE%% ENV LANG C.UTF-8 # Setup base -RUN apk add --no-cache tzdata jq samba-server samba-common-tools +RUN apk add --no-cache jq samba-server samba-common-tools # Copy data COPY run.sh / diff --git a/samba/config.json b/samba/config.json index 43cadef..4a83b62 100644 --- a/samba/config.json +++ b/samba/config.json @@ -1,10 +1,10 @@ { "name": "Samba share", - "version": "1.0", + "version": "1.1", "slug": "samba", "description": "Expose HassIO folders with Samba", "url": "https://home-assistant.io/addons/samba/", - "startup": "before", + "startup": "services", "boot": "auto", "ports": { "445/tcp": 445, diff --git a/samba/run.sh b/samba/run.sh index cf9efc8..924952c 100644 --- a/samba/run.sh +++ b/samba/run.sh @@ -71,4 +71,5 @@ else echo -e "$PASSWORD\n$PASSWORD" | smbpasswd -a -s -c /etc/smb.conf "$USERNAME" fi +nmbd -s /etc/smb.conf exec smbd -F -S -s /etc/smb.conf < /dev/null