From e3e9adb63efde2e38a380403dd0ba634f50ce28f Mon Sep 17 00:00:00 2001 From: billz Date: Fri, 10 Oct 2025 04:22:10 -0700 Subject: [PATCH] Extend plugin-helper to install .deb packages --- installers/plugin_helper.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/installers/plugin_helper.sh b/installers/plugin_helper.sh index c980040b..3151256f 100755 --- a/installers/plugin_helper.sh +++ b/installers/plugin_helper.sh @@ -41,6 +41,21 @@ case "$action" in echo "OK" ;; + "deb") + [ $# -lt 1 ] && { echo "Usage: $0 deb "; exit 1; } + deb_file="$1" + + if [ ! -f "$deb_file" ]; then + echo "Error: File not found: $deb_file" + exit 1 + fi + + echo "Installing .deb package: $deb_file" + dpkg -i "$deb_file" + + echo "OK" + ;; + "user") [ $# -lt 2 ] && { echo "Usage: $0 user ."; exit 1; }