core: 安装过程中添加 motd 提醒
This commit is contained in:
parent
c3c7142df7
commit
80f5d2e8a8
8
trans.sh
8
trans.sh
@ -195,6 +195,13 @@ qemu_nbd() {
|
||||
sleep 5
|
||||
}
|
||||
|
||||
mod_motd() {
|
||||
cat <<EOF >/etc/motd
|
||||
Reinstalling...
|
||||
Run "tail -f /reinstall.html" to view logs.
|
||||
EOF
|
||||
}
|
||||
|
||||
# 可能脚本不是首次运行,先清理之前的残留
|
||||
clear_previous() {
|
||||
{
|
||||
@ -1204,6 +1211,7 @@ xda=$(ls /dev/ | grep -Ex 'sda|hda|xda|vda|xvda|nvme0n1')
|
||||
|
||||
# shellcheck disable=SC2154
|
||||
if [ "$distro" != "alpine" ]; then
|
||||
mod_motd
|
||||
setup_nginx_if_enough_ram
|
||||
add_community_repo
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user