core: 不重要的优化

This commit is contained in:
bin456789
2024-01-27 23:17:50 +08:00
parent abda204a50
commit 1bc01b97e4
6 changed files with 106 additions and 84 deletions

View File

@ -16,8 +16,7 @@ chpasswd:
password: 123@@@
type: text
runcmd:
# arch 没有 /etc/ssh/sshd_config.d/ 文件夹
# opensuse tumbleweed 有 /etc/ssh/sshd_config.d/ 文件夹,但没有 /etc/ssh/sshd_config但有/usr/etc/ssh/sshd_config
# opensuse tumbleweed 有 /etc/ssh/sshd_config.d/ 文件夹,没有 /etc/ssh/sshd_config有/usr/etc/ssh/sshd_config
- grep 'Include.*/etc/ssh/sshd_config.d' /etc/ssh/sshd_config && mkdir -p /etc/ssh/sshd_config.d && echo "PermitRootLogin yes" >/etc/ssh/sshd_config.d/01-permitrootlogin.conf || echo "PermitRootLogin yes" >>/etc/ssh/sshd_config
- systemctl restart sshd
- touch /etc/cloud/cloud-init.disabled