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