From b9a1f378ec25c49b2df17bf252351ef2eacad078 Mon Sep 17 00:00:00 2001 From: MacRimi Date: Wed, 20 Aug 2025 20:59:58 +0200 Subject: [PATCH] Update lxc_menu.sh --- scripts/menus/lxc_menu.sh | 32 ++------------------------------ 1 file changed, 2 insertions(+), 30 deletions(-) diff --git a/scripts/menus/lxc_menu.sh b/scripts/menus/lxc_menu.sh index febb54f..22d5c21 100644 --- a/scripts/menus/lxc_menu.sh +++ b/scripts/menus/lxc_menu.sh @@ -39,7 +39,7 @@ show_main_menu() { case $CHOICE in 1) - convert_privileged_to_unprivileged + bash <(curl -fsSL "$REPO_URL/scripts/lcx/lxc-privileged-to-unprivileged.sh") ;; 2) convert_unprivileged_to_privileged @@ -56,40 +56,12 @@ show_main_menu() { esac } -convert_privileged_to_unprivileged() { - msg_info "$(translate 'Starting privileged to unprivileged conversion...')" - - SCRIPT_PATH="$BASE_DIR/lxc-privileged-to-unprivileged.sh" - if [ ! -f "$SCRIPT_PATH" ]; then - msg_error "$(translate 'Conversion script not found:') $SCRIPT_PATH" - return 1 - fi - - bash "$SCRIPT_PATH" - - - if whiptail --yesno "$(translate 'Do you want to return to the main menu?')" 10 60; then - show_main_menu - fi -} convert_unprivileged_to_privileged() { - msg_info "$(translate 'Starting unprivileged to privileged conversion...')" - - SCRIPT_PATH="$BASE_DIR/lxc-unprivileged-to-privileged.sh" - if [ ! -f "$SCRIPT_PATH" ]; then - msg_error "$(translate 'Conversion script not found:') $SCRIPT_PATH" - return 1 - fi + bash <(curl -fsSL "$REPO_URL/scripts/lcx/lxc-privileged-to-unprivileged.sh") - bash "$SCRIPT_PATH" - - - if whiptail --yesno "$(translate 'Do you want to return to the main menu?')" 10 60; then - show_main_menu - fi } show_container_status() {