mirror of
https://github.com/dw-0/kiauh.git
synced 2025-12-13 10:34:28 +05:00
feature: initial commit to add installer for Fluidd + rewrite nginx related stuff
This commit is contained in:
@@ -7,6 +7,10 @@ bottom_border(){
|
||||
echo -e "\=======================================================/"
|
||||
}
|
||||
|
||||
blank_line(){
|
||||
echo -e "| | "
|
||||
}
|
||||
|
||||
hr(){
|
||||
echo -e "|-------------------------------------------------------|"
|
||||
}
|
||||
@@ -29,7 +33,7 @@ kiauh_update_msg(){
|
||||
top_border
|
||||
echo -e "| ${yellow}There is a newer version of this script available!${default} | "
|
||||
echo -e "| ${yellow}Type 'update' if you want to update KIAUH now.${default} | "
|
||||
echo -e "| | "
|
||||
blank_line
|
||||
echo -e "| ${yellow}Check out the KIAUH changelog for important changes${default} | "
|
||||
echo -e "| ${yellow}either to the script or the installable components!${default} | "
|
||||
bottom_border
|
||||
|
||||
@@ -9,8 +9,8 @@ install_ui(){
|
||||
echo -e "| Firmware: | Webinterface: | "
|
||||
echo -e "| 1) [Klipper] | 3) [DWC2] | "
|
||||
echo -e "| | 4) [Mainsail] | "
|
||||
echo -e "| Klipper API: | 5) [Octoprint] | "
|
||||
echo -e "| 2) [Moonraker] | | "
|
||||
echo -e "| Klipper API: | 5) [Fluidd] | "
|
||||
echo -e "| 2) [Moonraker] | 6) [Octoprint] | "
|
||||
quit_footer
|
||||
}
|
||||
|
||||
@@ -47,6 +47,12 @@ install_menu(){
|
||||
print_msg && clear_msg
|
||||
install_ui;;
|
||||
5)
|
||||
clear
|
||||
print_header
|
||||
INST_FLUIDD="true" && install_fluidd
|
||||
print_msg && clear_msg
|
||||
install_ui;;
|
||||
6)
|
||||
clear
|
||||
print_header
|
||||
install_octoprint
|
||||
|
||||
@@ -32,6 +32,7 @@ main_menu(){
|
||||
read -p "Perform action: " action; echo
|
||||
echo -e "${default}"
|
||||
case "$action" in
|
||||
8) read_listen_port;;
|
||||
update)
|
||||
clear
|
||||
print_header
|
||||
|
||||
@@ -11,10 +11,11 @@ remove_ui(){
|
||||
echo -e "| Firmware: | Webinterface: | "
|
||||
echo -e "| 1) [Klipper] | 3) [DWC2] | "
|
||||
echo -e "| | 4) [Mainsail] | "
|
||||
echo -e "| Klipper API: | 5) [Octoprint] | "
|
||||
echo -e "| 2) [Moonraker] | | "
|
||||
echo -e "| Klipper API: | 5) [Fluidd] | "
|
||||
echo -e "| 2) [Moonraker] | 6) [Octoprint] | "
|
||||
echo -e "| | | "
|
||||
echo -e "| | Webserver: | "
|
||||
echo -e "| | 6) [Nginx] | "
|
||||
echo -e "| | 7) [Nginx] | "
|
||||
quit_footer
|
||||
}
|
||||
|
||||
@@ -53,10 +54,16 @@ remove_menu(){
|
||||
5)
|
||||
clear
|
||||
print_header
|
||||
remove_octoprint
|
||||
remove_fluidd
|
||||
print_msg && clear_msg
|
||||
remove_ui;;
|
||||
6)
|
||||
clear
|
||||
print_header
|
||||
remove_octoprint
|
||||
print_msg && clear_msg
|
||||
remove_ui;;
|
||||
7)
|
||||
clear
|
||||
print_header
|
||||
remove_nginx
|
||||
|
||||
@@ -21,6 +21,7 @@ update_ui(){
|
||||
echo -e "| |---------------|--------------| "
|
||||
echo -e "| 4) [Moonraker] | $(echo "$LOCAL_MOONRAKER_COMMIT") | $(echo "$REMOTE_MOONRAKER_COMMIT") | "
|
||||
echo -e "| 5) [Mainsail] | $(echo "$MAINSAIL_LOCAL_VER") | $(echo "$MAINSAIL_REMOTE_VER") | "
|
||||
echo -e "| 6) [Fluidd] | $(echo "$FLUIDD_LOCAL_VER") | $(echo "$FLUIDD_REMOTE_VER") | "
|
||||
quit_footer
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user