From 8dd60881b6de1e97d30fb836582ad397e2f0a718 Mon Sep 17 00:00:00 2001 From: ben Date: Sun, 3 Sep 2023 01:22:01 +0000 Subject: [PATCH] Update 'root/usr/libexec/apps/lxdterm/lxc-attach.sh' --- .../libexec/apps/lxdterm/{lxdterm.sh => lxc-attach.sh} | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) rename root/usr/libexec/apps/lxdterm/{lxdterm.sh => lxc-attach.sh} (76%) diff --git a/root/usr/libexec/apps/lxdterm/lxdterm.sh b/root/usr/libexec/apps/lxdterm/lxc-attach.sh similarity index 76% rename from root/usr/libexec/apps/lxdterm/lxdterm.sh rename to root/usr/libexec/apps/lxdterm/lxc-attach.sh index 69ff4e9..c3fdd8c 100755 --- a/root/usr/libexec/apps/lxdterm/lxdterm.sh +++ b/root/usr/libexec/apps/lxdterm/lxc-attach.sh @@ -8,7 +8,7 @@ get_image() { } do_install_detail() { - local config=`uci get lxdterm.@lxdterm[0].container 2>/dev/null` + local config=`uci get lxc-attach.@lxc-attach[0].container 2>/dev/null` #Generate the generic environment variables for the docker-compose @@ -46,16 +46,16 @@ case ${ACTION} in do_install_detail ;; "rm") - docker rm -f lxdterm + docker rm -f lxc-attach ;; "start" | "stop" | "restart") - docker ${ACTION} lxdterm + docker ${ACTION} lxc-attach ;; "status") - docker ps --all -f 'name=lxdterm' --format '{{.State}}' + docker ps --all -f 'name=lxc-attach' --format '{{.State}}' ;; "port") - docker ps --all -f 'name=lxdterm' --format '{{.Ports}}' | grep -om1 '0.0.0.0:[0-9]*' | sed 's/0.0.0.0://' + docker ps --all -f 'name=lxc-attach' --format '{{.Ports}}' | grep -om1 '0.0.0.0:[0-9]*' | sed 's/0.0.0.0://' ;; *) usage