mirror of
https://github.com/MacRimi/ProxMenux.git
synced 2025-11-17 19:16:25 +00:00
fix: add validation for missing ProxMenux Monitor AppImage
- Check if AppImage exists before attempting installation - Display clear error message when AppImage is not found - Update config to track installation failure state
This commit is contained in:
@@ -585,6 +585,12 @@ get_appimage_version() {
|
||||
install_proxmenux_monitor() {
|
||||
local appimage_source=$(detect_latest_appimage)
|
||||
|
||||
if [ -z "$appimage_source" ] || [ ! -f "$appimage_source" ]; then
|
||||
msg_error "ProxMenux Monitor AppImage not found in $TEMP_DIR/AppImage/"
|
||||
msg_warn "Please ensure the AppImage directory exists with ProxMenux-*.AppImage files."
|
||||
update_config "proxmenux_monitor" "appimage_not_found"
|
||||
return 1
|
||||
fi
|
||||
|
||||
local appimage_version=$(get_appimage_version "$appimage_source")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user