尝试在 Vangrant Ubuntu 盒子中设置 ArangoDB 的无人值守安装。我已按照此处的无人值守安装说明进行操作:https://docs.arangodb.com/3.1/Manual/GettingStarted/Installing/Linux.html
不过,这个是针对密码提示,而不是针对数据库升级和备份数据库文件的提示。如何让这些沉默?
最佳答案
好的,我想通了。基本上你需要使用以下命令:
sudo debconf-get-selections | grep arangodb3
If you get a "debconf-get-selections command not found error" then you need to install the debconf-utils package like so:
sudo apt-get install -y debconf-utils
这将吐出一个像这样的列表:
arangodb3 arangodb3/password password
arangodb3 arangodb3/password_again password
arangodb3 arangodb3/backup boolean false
arangodb3 arangodb3/password_mismatch error
arangodb3 arangodb3/upgrade boolean true
这些是设置无人值守安装所需的所有键和类型。当我说键和类型时,我指的是:
package/key type
arangodb3/backup boolean
上面的例子中包是arangodb3,键是backup,类型是boolean。然后在您的设置脚本中,您需要像这样使用您选择的值来包含它:
echo arangodb3 arangodb3/backup boolean false | debconf-set-selections
echo arangodb3 arangodb3/upgrade boolean true | debconf-set-selections
关于linux - Vagrant Box 中的 ArangoDB 无人值守安装,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44787938/