Add OctoApp support

This commit is contained in:
Christian Würthner 2024-03-30 15:19:23 +01:00
parent 4b5010572a
commit ac27c61985
9 changed files with 112 additions and 0 deletions

View file

@ -48,6 +48,7 @@ function info_menu_ui_ke() {
info_line "$(check_folder_ke "$MOONRAKER_OBICO_FOLDER")" 'Obico'
info_line "$(check_folder_ke "$MOBILERAKER_COMPANION_FOLDER")" 'Mobileraker Companion'
info_line "$(check_folder_ke "$GUPPYFLO_FOLDER")" 'GuppyFLO'
info_line "$(check_folder_ke "$OCTOAPP_FOLDER")" 'OctoApp Companion'
hr
subtitle '•CUSTOMIZATION:'
info_line "$(check_file_ke "$CREALITY_WEB_FILE")" 'Creality Web Interface'

View file

@ -30,6 +30,7 @@ function install_menu_ui_ke() {
menu_option '12' 'Install' 'Moonraker Obico'
menu_option '13' 'Install' 'Mobileraker Companion'
menu_option '14' 'Install' 'GuppyFLO'
menu_option '15' 'Install' 'OctoApp Companion'
hr
inner_line
hr
@ -157,6 +158,18 @@ function install_menu_ke() {
else
run "install_guppyflo" "install_menu_ui_ke"
fi;;
15)
if [ -d "$OCTOAPP_FOLDER" ]; then
error_msg "OctoApp Companion is already installed!"
elif [ ! -d "$MOONRAKER_FOLDER" ]; then
error_msg "Moonraker and Nginx are needed, please install them first!"
elif [ ! -d "$FLUIDD_FOLDER" ] && [ ! -d "$MAINSAIL_FOLDER" ]; then
error_msg "Fluidd or Mainsail is needed, please install it first!"
elif [ ! -f "$ENTWARE_FILE" ]; then
error_msg "Entware is needed, please install it first!"
else
run "install_octoapp" "install_menu_ui_ke"
fi;;
B|b)
clear; main_menu; break;;
Q|q)

View file

@ -30,6 +30,7 @@ function remove_menu_ui_ke() {
menu_option '12' 'Remove' 'Moonraker Obico'
menu_option '13' 'Remove' 'Mobileraker Companion'
menu_option '14' 'Remove' 'GuppyFLO'
menu_option '15' 'Remove' 'OctoApp Companion'
hr
inner_line
hr
@ -153,6 +154,12 @@ function remove_menu_ke() {
else
run "remove_guppyflo" "remove_menu_ui_ke"
fi;;
15)
if [ ! -d "$OCTOAPP_FOLDER" ]; then
error_msg "OctoApp Companion is not installed!"
else
run "remove_octoapp" "remove_menu_ui_ke"
fi;;
B|b)
clear; main_menu; break;;
Q|q)