mirror of
				https://github.com/billz/raspap-webgui.git
				synced 2025-03-01 10:31:47 +00:00 
			
		
		
		
	Add _check_notify_ubuntu()
This commit is contained in:
		| @@ -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" | ||||
|   | ||||
		Reference in New Issue
	
	Block a user