|
|
|
@ -99,12 +99,12 @@ case "${ACTION}" in
|
|
|
|
|
done
|
|
|
|
|
;;
|
|
|
|
|
"status")
|
|
|
|
|
APP_NAME="btcpayserver"
|
|
|
|
|
CONTAINER_NAMES=$(docker ps -a --filter "name=${APP_NAME}" --format '{{.Names}}')
|
|
|
|
|
if [ -z "$CONTAINER_NAMES" ]; then
|
|
|
|
|
CONTAINER_NAME="generated_btcpayserver_1"
|
|
|
|
|
CONTAINER_STATUS=$(docker ps --all --filter "name=${CONTAINER_NAME}" --format '{{.Status}}' | awk -F' ' '{print $1, $2, $3}')
|
|
|
|
|
if [ -z "$CONTAINER_STATUS" ]; then
|
|
|
|
|
echo "${APP_NAME} is not installed."
|
|
|
|
|
else
|
|
|
|
|
docker ps --all -f "name=${CONTAINER_NAMES}" --format '{{.Status}}'
|
|
|
|
|
echo "${CONTAINER_STATUS}"
|
|
|
|
|
fi
|
|
|
|
|
;;
|
|
|
|
|
"port")
|
|
|
|
|