mirror of
https://github.com/aljazceru/addons.git
synced 2025-12-18 13:44:20 +01:00
Rename SMB_config / fix ssh
This commit is contained in:
@@ -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,
|
||||
@@ -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",
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user