Browse Source

openssh: keep same permission for /etc/ssh

Signed-off-by: Huangbin Zhan <zhanhb88@gmail.com>
lilik-openwrt-22.03
Huangbin Zhan 3 years ago
committed by Rosen Penev
parent
commit
159e12381f
1 changed files with 3 additions and 5 deletions
  1. +3
    -5
      net/openssh/Makefile

+ 3
- 5
net/openssh/Makefile View File

@ -197,13 +197,12 @@ define Build/Compile
endef
define Package/openssh-moduli/install
$(INSTALL_DIR) $(1)/etc/ssh
install -d -m0700 $(1)/etc/ssh
$(INSTALL_DATA) $(PKG_INSTALL_DIR)/etc/ssh/moduli $(1)/etc/ssh/
endef
define Package/openssh-client/install
$(INSTALL_DIR) $(1)/etc/ssh
chmod 0700 $(1)/etc/ssh
install -d -m0700 $(1)/etc/ssh
$(CP) $(PKG_INSTALL_DIR)/etc/ssh/ssh_config $(1)/etc/ssh/
$(INSTALL_DIR) $(1)/usr/libexec
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/ssh $(1)/usr/libexec/ssh-openssh
@ -221,8 +220,7 @@ define Package/openssh-keygen/install
endef
define Package/openssh-server/install
$(INSTALL_DIR) $(1)/etc/ssh
chmod 0700 $(1)/etc/ssh
install -d -m0700 $(1)/etc/ssh
$(INSTALL_DATA) $(PKG_INSTALL_DIR)/etc/ssh/sshd_config $(1)/etc/ssh/
sed -r -i 's,^#(HostKey /etc/ssh/ssh_host_(rsa|ed25519)_key)$$$$,\1,' $(1)/etc/ssh/sshd_config
$(INSTALL_DIR) $(1)/etc/init.d


Loading…
Cancel
Save