更新 centos-7-init

This commit is contained in:
ZhuoQinghui 2024-03-01 15:33:05 +08:00
parent fa23a487cc
commit 460ccfeebc

View File

@ -1,5 +1,7 @@
#!/bin/bash #!/bin/bash
# curl -o init.sh https://git.zykeji.club/open/server-init/raw/master/CentOS/7/all/centos-7-init.sh && sh init.sh
# 循环提示用户输入要设置的主机名,直到用户正常输入 # 循环提示用户输入要设置的主机名,直到用户正常输入
while true; do while true; do
read -p "请输入要设置的主机名: " hostname read -p "请输入要设置的主机名: " hostname