Hopefully fix inspect

This commit is contained in:
LinuxSquare 2023-12-23 14:06:44 +01:00
parent 8eed14d538
commit a9fb18c7c0

View file

@ -26,9 +26,8 @@ function inspectpod() {
echo -e "Container-Name: $(getLocalConfValue $(getValueByKey 'PODMAN_DIRECTORY')/${1} container.name)
Network: $(getLocalConfValue $(getValueByKey 'PODMAN_DIRECTORY')/${1} network.name)
Status: [[ -n $(podman container ls | grep $(getLocalConfValue $(getValueByKey 'PODMAN_DIRECTORY')/${1} container.name) ]] && echo -e '${GREEN}Running${RESET}' || echo -e '${RED}Stopped${RESET}')
Status: $([[ -n $(podman container ls | grep $(getLocalConfValue $(getValueByKey 'PODMAN_DIRECTORY')/${1} container.name)) ]] && echo -e ${GREEN}Running${RESET} || echo -e ${RED}Stopped${RESET})
Uptime: ${GREEN}$(podman container ls | grep ${1} | awk '{$1=$1};1' | cut -d' ' -f 7-8)${RESET}"
}
##
# description: starts the defined podman container