Alex A. Naanou 9a34d48f5f working on host setup...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
2024-01-15 16:47:30 +03:00

54 lines
929 B
Bash

#!/usr/bin/bash
#----------------------------------------------------------------------
cd $(dirname $0)
PATH=$PATH:$(dirname "$(pwd)")
#----------------------------------------------------------------------
source ../.pct-helpers
#----------------------------------------------------------------------
readConfig
SOFTWARE=(
make
w3m links
qrencode
htop iftop iotop
tmux
)
#----------------------------------------------------------------------
# Tools
if xreadYes "# Update system?" UPDATE ; then
@ apt update
@ apt upgrade
fi
if xreadYes "# Install additional apps?" APPS ; then
@ apt install $(SOFTWARE[@])
fi
# Networking
if xreadYes "# Create bridges?" BRIDGES ; then
echo
fi
# Firewall
# XXX this should be done after the setup process...
if xreadYes "# Update firewall rules?" BRIDGES ; then
echo
fi
#----------------------------------------------------------------------
# vim:set ts=4 sw=4 :