Skip to content

Commit

Permalink
tweak status output
Browse files Browse the repository at this point in the history
  • Loading branch information
fitztrev committed Aug 2, 2024
1 parent 67e5b4a commit 21f0d4c
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions lila-docker
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env bash
#!/usr/bin/env bash

set -e

Expand Down Expand Up @@ -56,6 +56,7 @@ run_start() {
COMPOSE_PROFILES=$(all_profiles) docker compose start
else
echo "There are no stopped services to resume"
exit 1
fi
fi
}
Expand Down Expand Up @@ -222,7 +223,7 @@ show_help() {
echo " build Pre-fetch and pre-build all the images necessary for the containers"
echo " format Run the code formatter to match Lichess code style"
echo " hostname Set the hostname to something different than the default localhost"
echo " mobile For mobile app development.Pair and connect to a mobile device"
echo " mobile For mobile app development. Pair and connect to a mobile device"
echo " flutter Get the 'flutter run' command with the URL arguments pre-configured"
echo " db Reset and re-seed the database with fresh fake data"
echo " lila clean Run 'sbt clean' in the lila container. Useful if there are compilation errors"
Expand Down Expand Up @@ -288,7 +289,11 @@ case "$@" in
;;
"status")
docker info --format '{{ .OperatingSystem }}, {{ .ClientInfo.Version }}, {{ .ClientInfo.Os }} {{ .ClientInfo.Arch }}'
docker compose ps
if [ -n "$(docker compose ps -q 2>/dev/null)" ]; then
docker compose ps
else
echo "No lila-docker services are running"
fi
echo "----------------------------"
./pull-all
;;
Expand Down

0 comments on commit 21f0d4c

Please sign in to comment.