英文:
Automatic installation of clickhouse via script, how to answer the question about the default password
问题
我有一个问题:
我需要安装 clickhouse-server 通用版和客户端。我需要将这些添加到我的自动安装脚本中,
问题是,在安装软件包的过程中,它要求“输入默认密码”,我只需指定“输入”留空,如何进行自动回复。必须首先期望并包含一个单独的文件与安装程序。
也许有人有解决方案?
我使用了expect,但对我来说似乎相当不方便,我必须创建一个单独的文件,以便它读取执行我的脚本。
英文:
I have a question:
I need to install clickhouse-server generic and client. I need to add this to my autoinstall script,
The problem is that during the installation of the package it asks for "Enter the default password", I just need to specify "enter" it blank, how do I auto-reply. one must first expect and include a separate file with the installer.
Maybe someone else has a solution?
I used expect, But it's rather inconvenient as it seems to me, I have to create a separate file so that it reads the execution of my script
答案1
得分: 1
ClickHouse 尊重 DEBIAN_FRONTEND
。
https://www.cyberciti.biz/faq/explain-debian_frontend-apt-get-variable-for-ubuntu-debian/
DEBIAN_FRONTEND=noninteractive apt-get install ....
英文:
Clickhouse respects DEBIAN_FRONTEND
https://www.cyberciti.biz/faq/explain-debian_frontend-apt-get-variable-for-ubuntu-debian/
DEBIAN_FRONTEND=noninteractive apt-get install ....
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论