cleanup...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2024-10-19 22:05:19 +03:00
parent 72ec3712a9
commit ed11a6cf1d

View File

@ -59,6 +59,7 @@ if ! [ -z $BOOTSTRAP_CLEAN ] ; then
DFL_HOSTS=SKIP DFL_HOSTS=SKIP
DFL_DNS=1 DFL_DNS=1
DFL_FIREWALL=SKIP DFL_FIREWALL=SKIP
# stage 2: clean -> final # stage 2: clean -> final
elif [ -e "$INTERFACES".final ] ; then elif [ -e "$INTERFACES".final ] ; then
@ mv "$INTERFACES"{.final,.new} @ mv "$INTERFACES"{.final,.new}
@ -68,6 +69,7 @@ if ! [ -z $BOOTSTRAP_CLEAN ] ; then
DFL_HOSTS=1 DFL_HOSTS=1
DFL_DNS=SKIP DFL_DNS=SKIP
DFL_FIREWALL=1 DFL_FIREWALL=1
# done # done
else else
exit exit
@ -212,14 +214,10 @@ if xreadYes "# Create bridges?" BRIDGES ; then
fi fi
echo "# Building config..." echo "# Building config templates..."
# XXX do we need any extra vars here???
buildAssets buildAssets
# XXX /etc/hosts???
# /etc/hosts # /etc/hosts
if xreadYes "# Update /etc/hosts?" HOSTS ; then if xreadYes "# Update /etc/hosts?" HOSTS ; then
@ cp /etc/hosts{,.bak} @ cp /etc/hosts{,.bak}
@ -230,6 +228,7 @@ if xreadYes "# Update /etc/hosts?" HOSTS ; then
reviewApplyChanges /etc/hosts reviewApplyChanges /etc/hosts
fi fi
# DNS # DNS
if xreadYes "# Update DNS?" DNS ; then if xreadYes "# Update DNS?" DNS ; then
file=/etc/resolv.conf file=/etc/resolv.conf