我希望我的问题的默认值位于当前用户的主目录中。
文件templates
Template: filesystem/root_path
Default: /home/${logname}/00_Files
Type: string
Description: The default directory to use when creating a new file.
文件config
#!/bin/bash
CONFIGFILE=/etc/filesystem.conf
set -e
. /usr/share/debconf/confmodule
db_subst filesystem/root_path logname "$(logname)"
# Load config file, if it exists.
if [ -e "$CONFIGFILE" ]; then
. "$CONFIGFILE" || true
# Store values from config file into
# debconf db.
db_set filesystem/root_path "$ROOT_PATH" || true
fi
# Ask questions.
db_input high filesystem/root_path || true
db_go || true
但对话框生成时/home/${logname}/00_Files
并未替换该值。
另外我如何更改 debconf 的前端?