From 37a5debafd770d94d02507e3eaff4cdb325c73b6 Mon Sep 17 00:00:00 2001 From: Pascal Vizeli Date: Sun, 30 Apr 2017 20:10:33 +0200 Subject: [PATCH 1/2] Rename SMB_config / fix ssh --- {smb_config => samba}/Dockerfile | 0 {smb_config => samba}/README.md | 0 {smb_config => samba}/config.json | 10 +++++----- {smb_config => samba}/run.sh | 0 {smb_config => samba}/smb.conf | 0 ssh/config.json | 2 +- ssh/run.sh | 3 ++- 7 files changed, 8 insertions(+), 7 deletions(-) rename {smb_config => samba}/Dockerfile (100%) rename {smb_config => samba}/README.md (100%) rename {smb_config => samba}/config.json (66%) rename {smb_config => samba}/run.sh (100%) rename {smb_config => samba}/smb.conf (100%) diff --git a/smb_config/Dockerfile b/samba/Dockerfile similarity index 100% rename from smb_config/Dockerfile rename to samba/Dockerfile diff --git a/smb_config/README.md b/samba/README.md similarity index 100% rename from smb_config/README.md rename to samba/README.md diff --git a/smb_config/config.json b/samba/config.json similarity index 66% rename from smb_config/config.json rename to samba/config.json index 00e8e3f4770..b78af6e8dd9 100644 --- a/smb_config/config.json +++ b/samba/config.json @@ -1,14 +1,14 @@ { - "name": "Samba Config", - "version": "0.7", - "slug": "smb_config", - "description": "Expose config with samba", + "name": "Samba share", + "version": "0.1", + "slug": "samba", + "description": "Expose HassIO folders with samba", "startup": "after", "boot": "auto", "ports": { "445/tcp": 445 }, - "map": ["config"], + "map": ["config", "ssl", "addons"], "options": { "workgroup": "WORKGROUP", "guest": true, diff --git a/smb_config/run.sh b/samba/run.sh similarity index 100% rename from smb_config/run.sh rename to samba/run.sh diff --git a/smb_config/smb.conf b/samba/smb.conf similarity index 100% rename from smb_config/smb.conf rename to samba/smb.conf diff --git a/ssh/config.json b/ssh/config.json index 083d7559ef0..71ccffeaf6c 100644 --- a/ssh/config.json +++ b/ssh/config.json @@ -1,6 +1,6 @@ { "name": "SSH server", - "version": "0.1", + "version": "0.2", "slug": "ssh", "description": "OpenSSH is the premier connectivity tool for remote login with the SSH protocol.", "startup": "before", diff --git a/ssh/run.sh b/ssh/run.sh index 80ae62b7f76..b495391695d 100644 --- a/ssh/run.sh +++ b/ssh/run.sh @@ -8,6 +8,7 @@ AUTHORIZED_KEYS=$(jq --raw-output ".authorized_keys[]" $CONFIG_PATH) # Init defaults config sed -i s/#PermitRootLogin.*/PermitRootLogin\ yes/ /etc/ssh/sshd_config +sed -i s/#PasswordAuthentication.*/PasswordAuthentication\ no/ /etc/ssh/sshd_config # Generate authorized_keys file mkdir -p ~/.ssh @@ -26,4 +27,4 @@ else fi # start server -exec sshd -D -f /etc/sshd_config < /dev/null +exec /usr/bin/sshd -D -f /etc/sshd_config < /dev/null From 7eb55d5d53d469c153f8007ddf3f74fa13184042 Mon Sep 17 00:00:00 2001 From: Pascal Vizeli Date: Sun, 30 Apr 2017 20:11:27 +0200 Subject: [PATCH 2/2] update readme --- samba/README.md | 4 ++-- ssh/README.md | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/samba/README.md b/samba/README.md index f69a0b7bf79..0b7d7da0cd4 100644 --- a/samba/README.md +++ b/samba/README.md @@ -1,5 +1,5 @@ -# Samba Config -Expose HomeAssistant config to samba share. +# Samba +Expose HassIO folders to samba share. ## Options diff --git a/ssh/README.md b/ssh/README.md index ecf7fba41e5..bbcbfe9b6bb 100644 --- a/ssh/README.md +++ b/ssh/README.md @@ -4,6 +4,8 @@ Provide a openssh server. You can access to: - /addons: Custom addon folder - /ssl: Store ssh key files for HassIO +Installed editor is vim + ## Options - `authorized_keys`: A array that ever element is a authorized key