Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rename smb_config / fix options on sshd #17

Merged
merged 6 commits into from
Apr 30, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
File renamed without changes.
4 changes: 2 additions & 2 deletions smb_config/README.md → samba/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Samba Config
Expose HomeAssistant config to samba share.
# Samba
Expose HassIO folders to samba share.

## Options

Expand Down
10 changes: 5 additions & 5 deletions smb_config/config.json → samba/config.json
Original file line number Diff line number Diff line change
@@ -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,
Expand Down
File renamed without changes.
File renamed without changes.
2 changes: 2 additions & 0 deletions ssh/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion ssh/config.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
3 changes: 2 additions & 1 deletion ssh/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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