enable to install mainsail/fluidd without moonraker

This allows the user to install Mainsail / Fluidd without Moonraker
in order to configure separate frontend and backend architecture.
This commit is contained in:
Mitsunori YOSHIDA
2022-10-21 05:22:31 +09:00
parent 046178f801
commit 8a82fb3c98
3 changed files with 78 additions and 3 deletions

View File

@@ -19,7 +19,21 @@ function install_fluidd() {
### exit early if moonraker not found
if [[ -z $(moonraker_systemd) ]]; then
local error="Moonraker not installed! Please install Moonraker first!"
print_error "${error}" && return
print_error "${error}"
while true; do
read -p "${cyan}###### Install Fluidd without Moonraker? (Y/n):${white} " yn
case "${yn}" in
Y|y|Yes|yes|"")
select_msg "Yes"
break;;
N|n|No|no)
select_msg "No"
abort_msg "Exiting Fluidd setup ...\n"
return;;
*)
error_msg "Invalid Input!";;
esac
done
fi
### checking dependencies