Alex A. Naanou ddb0480f46 added post-setup notes to each ct...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
2024-01-26 03:06:55 +03:00

56 lines
977 B
Bash

#!/usr/bin/bash
#----------------------------------------------------------------------
cd $(dirname $0)
PATH=$PATH:$(dirname "$(pwd)")
#----------------------------------------------------------------------
source ../.pct-helpers
#----------------------------------------------------------------------
readConfig
SOFTWARE=(
make
w3m links
tree
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
if xreadYes "# Update firewall rules?" FIREWALL ; then
@ cp --backup -i templates/etc/pve/firewall/cluster.fw /etc/pve/firewall/
fi
showNotes
echo "# Done."
#----------------------------------------------------------------------
# vim:set ts=4 sw=4 :