From a69bf2c6dddd16deefc514189a86a7dd458aecf1 Mon Sep 17 00:00:00 2001 From: billz Date: Sun, 4 Jun 2023 12:26:15 +0000 Subject: [PATCH] Add _check_notify_ubuntu() --- installers/common.sh | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/installers/common.sh b/installers/common.sh index 7bc2ce56..9f83ef57 100755 --- a/installers/common.sh +++ b/installers/common.sh @@ -171,6 +171,8 @@ function _set_php_package() { function _manage_systemd_services() { _install_log "Checking for systemd network services" + _check_notify_ubuntu + services=( "systemd-networkd" "systemd-resolved" ) for svc in "${services[@]}"; do # Prompt to disable systemd service @@ -195,6 +197,20 @@ function _manage_systemd_services() { _install_status 0 } +function _check_notify_ubuntu() { + if [ ${OS,,} = "ubuntu" ]; then + _install_status 2 "Ubuntu Server requires manual pre- and post-install steps. See https://docs.raspap.com/manual/" + echo -n "Proceed with installation? [Y/n]: " + read answer < /dev/tty + if [ "$answer" != "${answer#[Nn]}" ]; then + echo "Installation aborted." + exit 0 + else + _install_status 0 + fi + fi +} + # Runs a system software update to make sure we're using all fresh packages function _install_dependencies() { _install_log "Installing required packages"