浏览代码

Fix script

andryyy 8 年之前
父节点
当前提交
9da72dfee4
共有 1 个文件被更改,包括 2 次插入4 次删除
  1. 2 4
      generate_config.sh

+ 2 - 4
generate_config.sh

@@ -12,10 +12,8 @@ if [[ -f mailcow.conf ]]; then
   esac
   esac
 fi
 fi
 
 
-echo -ne "\e[1mHostname:\e[0m "
-read -ei "mx.example.org" MAILCOW_HOSTNAME
-echo -ne "\e[1mTimezone:\e[0m "
-read -ei "Europe/Berlin" TZ
+read -p "Hostname (FQDN): " -i "mx.example.org" MAILCOW_HOSTNAME
+read -p "Timezone: " -i "Europe/Berlin" TZ
 
 
 cat << EOF > mailcow.conf
 cat << EOF > mailcow.conf
 # ------------------------------
 # ------------------------------