summaryrefslogtreecommitdiff
path: root/scripts/install/install-postinst-new
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@baturin.org>2013-10-21 21:33:19 -0700
committerDaniil Baturin <daniil@baturin.org>2013-10-21 21:33:19 -0700
commita24008a70df0a6a15741a7d12f56429b330a21df (patch)
tree95fe7d8f9cb1a2c7b149cac5742f7fb0281c2b6e /scripts/install/install-postinst-new
parentfebf542329bb0f8bafa7c12f6dfaf2e1b62755c7 (diff)
downloadvyatta-cfg-system-a24008a70df0a6a15741a7d12f56429b330a21df.tar.gz
vyatta-cfg-system-a24008a70df0a6a15741a7d12f56429b330a21df.zip
Update default user in installer script.
Diffstat (limited to 'scripts/install/install-postinst-new')
-rwxr-xr-xscripts/install/install-postinst-new5
1 files changed, 4 insertions, 1 deletions
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