Update 'root/usr/libexec/apps/lxdterm/lxc-attach.sh'

main
ben 1 year ago
parent cf78655bca
commit 8dd60881b6

@ -8,7 +8,7 @@ get_image() {
} }
do_install_detail() { 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 #Generate the generic environment variables for the docker-compose
@ -46,16 +46,16 @@ case ${ACTION} in
do_install_detail do_install_detail
;; ;;
"rm") "rm")
docker rm -f lxdterm docker rm -f lxc-attach
;; ;;
"start" | "stop" | "restart") "start" | "stop" | "restart")
docker ${ACTION} lxdterm docker ${ACTION} lxc-attach
;; ;;
"status") "status")
docker ps --all -f 'name=lxdterm' --format '{{.State}}' docker ps --all -f 'name=lxc-attach' --format '{{.State}}'
;; ;;
"port") "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 usage
Loading…
Cancel
Save