mirror of
https://github.com/bin456789/reinstall.git
synced 2025-01-18 20:39:14 +08:00
core: 云镜像设置时区
This commit is contained in:
parent
2e90561878
commit
f180fd5be8
@ -1,5 +1,6 @@
|
||||
#cloud-config
|
||||
datasource_list: [NoCloud]
|
||||
timezone: Asia/Shanghai
|
||||
disable_root: false
|
||||
ssh_pwauth: true
|
||||
users:
|
||||
@ -18,4 +19,6 @@ runcmd:
|
||||
# arch 没有 /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
|
||||
- echo -e '\nDone' >/dev/tty0
|
||||
# ubuntu 镜像运行 echo -e '\nDone' ,-e 会被显示出来
|
||||
- echo >/dev/tty0
|
||||
- echo Done >/dev/tty0
|
||||
|
Loading…
x
Reference in New Issue
Block a user