From a24008a70df0a6a15741a7d12f56429b330a21df Mon Sep 17 00:00:00 2001 From: Daniil Baturin Date: Mon, 21 Oct 2013 21:33:19 -0700 Subject: Update default user in installer script. --- scripts/install/install-postinst-new | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'scripts') diff --git a/scripts/install/install-postinst-new b/scripts/install/install-postinst-new index 59b255b2..e8a84c5e 100755 --- a/scripts/install/install-postinst-new +++ b/scripts/install/install-postinst-new @@ -21,6 +21,9 @@ ROOT_PARTITION=$2 # install type: "union" or "old" INSTALL_TYPE=$3 +# Default user +DEFAULT_USER=vyos + # copy configuration to the config directory copy_config () { local cfg_dir=${INST_ROOT}${VYATTA_CFG_DIR} @@ -214,7 +217,7 @@ if [ ! -d /mnt/config ]; then set_encrypted_password root "*" "${INST_ROOT}${VYATTA_CFG_DIR}/config.boot" echo "Enter password for administrator account" - change_password vyatta "${INST_ROOT}${VYATTA_CFG_DIR}/config.boot" + change_password $DEFAULT_USER "${INST_ROOT}${VYATTA_CFG_DIR}/config.boot" fi # Install grub -- cgit v1.2.3