Skip to content

Commit

Permalink
T1047: look for a saved config in the "real" config dir at install time
Browse files Browse the repository at this point in the history
(i.e. not the bind-mounted /config).
  • Loading branch information
dmbaturin committed Dec 3, 2018
1 parent 4b9e546 commit 84f1d67
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/install/install-postinst-new
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ copy_config () {
# that this will include any changes made and saved by the user,
# as well as changes such as interface MAC addresses automatically
# generated by the user. So it is the first choice.
if [ -f "${VYATTA_NEW_CFG_DIR}/config.boot" ]; then
config=${VYATTA_NEW_CFG_DIR}/config.boot
if [ -f "${VYATTA_CFG_DIR}/config.boot" ]; then
config=${VYATTA_CFG_DIR}/config.boot
fi

# Third candidate: The default config file
Expand Down

0 comments on commit 84f1d67

Please sign in to comment.