mirror of
https://github.com/dw-0/kiauh.git
synced 2025-12-14 02:54:28 +05:00
script: only display dialogs if files/service not found
This commit is contained in:
@@ -69,6 +69,7 @@ get_user_selection_kiauh_macros(){
|
||||
}
|
||||
|
||||
install_webui(){
|
||||
source_kiauh_ini
|
||||
### check if moonraker is already installed
|
||||
check_moonraker
|
||||
|
||||
@@ -92,11 +93,14 @@ install_webui(){
|
||||
$1_port_check
|
||||
|
||||
### ask user to install mjpg-streamer
|
||||
get_user_selection_mjpg-streamer
|
||||
if [[ ! "$(systemctl list-units --full -all -t service --no-legend | grep -F "webcamd.service")" ]]; then
|
||||
get_user_selection_mjpg-streamer
|
||||
fi
|
||||
|
||||
### ask user to install the recommended webinterface macros
|
||||
get_user_selection_kiauh_macros "$IF_NAME2"
|
||||
|
||||
if [[ ! -n $(ls $klipper_cfg_loc/kiauh_macros.cfg) ]] || [[ ! -n $(ls $klipper_cfg_loc/printer_*/kiauh_macros.cfg) ]]; then
|
||||
get_user_selection_kiauh_macros "$IF_NAME2"
|
||||
fi
|
||||
### creating the mainsail/fluidd nginx cfg
|
||||
set_nginx_cfg "$1"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user