mirror of
https://github.com/RaspAP/raspap-webgui.git
synced 2024-11-22 07:30:23 +00:00
Add _check_notify_ubuntu()
This commit is contained in:
parent
5c9e842244
commit
a69bf2c6dd
1 changed files with 16 additions and 0 deletions
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue