shell 命令,弹窗如何输入值或跳过,比如 apt upgrade,会有弹窗
如题
想修改站长的 LNMP 安装脚本,但是 apt 等会有弹窗。
MySQL 的,我看站长代码是
debconf-set-selections <<< "mysql-server mysql-server/root_password password ${MYSQL_ROOT_PASSWORD}"
debconf-set-selections <<< "mysql-server mysql-server/root_password_again password ${MYSQL_ROOT_PASSWORD}"
而其它由 apt 弹出 *DUMP 或者是提示需要重启,这种从哪里找解决方法。
推荐文章: