#!/bin/bash startPreInstall() { # Disable Input # stty -echo isHeader "Pre-Installation" ####################################################### ### Install for Operating System ### ####################################################### installDebianUbuntu; installArch; ####################################################### ### Install Docker ### ####################################################### # Rootless installDockerRootlessUser; installDockerRootlessStartSetup; # Rooted installDockerRooted; installDockerRootedCompose; installDockerRootedCheck; # Both installDockerNetwork; ####################################################### ### Install UFW Firewall ### ####################################################### installUFW; installUFWDocker; ####################################################### ### Install Misc ### ####################################################### installSQLiteDatabase; installCrontab; installSSLCertificate; installSwapfile; # installLibrePortalAppWebUI builds the WebUI image as its step 1 on a fresh # install (libreportal not yet in the DB). Only build standalone here when # that path will be SKIPPED (libreportal already installed — a rebuild), so a # fresh install doesn't build the same image twice. if [[ "$(dockerCheckAppInstalled libreportal docker)" != "not_installed" ]]; then installLibrePortalImageWebUI; fi installLibrePortalAppWebUI; installLibrePortalWebUITaskService; startScan; ####################################################### ### Recommended ### ####################################################### installRecommendedApps; installOptionalMetricsApps; if [[ "$initial_command2" == "terminal" ]]; then resetToMenu; fi }