无需用户交互即可安装 Pi-Hole?

Kut*_*ato 3 software-installation vagrant pi-hole

我想在 Vagrant (VirtualBox) 中自动安装 Pi-Hole。\xc2\xa0\n因此,在自动脚本中,它必须运行到盒子启动。\xc2\xa0\n不幸的是,通常,\n你必须回答多个\xc2\xa0 安装 Pi-Hole 的安装问题,\ne.g.,IPv4 或 \xc2\xa06,...,\n并且您需要与安装程序进行键盘交互(由 \xc2\xa0the\xc2\xa0user)。

\n

有没有任何方法或解决方案可以在没有任何交互的情况下安装它?\xc2\xa0\n我如何\xc2\xa0将其写入Bash脚本或\xc2\xa0Vagrant文​​件中?

\n

meu*_*euh 5

讨论表示您可以在文件中创建配置选项/etc/pihole/setupVars.conf在此处记录)并使用该--unattended标志运行,例如:

curl -L https://install.pi-hole.net | bash /dev/stdin --unattended
Run Code Online (Sandbox Code Playgroud)