Skip to content

Commit

Permalink
Some slight reformatting
Browse files Browse the repository at this point in the history
  • Loading branch information
mz2 committed Apr 9, 2024
1 parent c350ce3 commit dd52b8f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions snap/local/info.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ PORT=$(snapctl get port)

SERVICE_INFO=$(snapctl services $SNAP_INSTANCE_NAME.listener)

echo "$SERVICE_INFO"
STATUS=$(echo "$SERVICE_INFO" | awk '/open-webui.listener/{print $3}')

echo "$SNAP_INSTANCE_NAME.listener: $STATUS"

if [ "$STATUS" == "active" ]; then
echo ''
echo "Open $SNAP_INSTANCE_NAME in your browser at the following URL: http://$HOST:$PORT"
echo ''
echo "To use $SNAP_INSTANCE_NAME, open the following URL in your browser: http://$HOST:$PORT"
else
echo ''
echo "If you expected the service to be up, check that the port $PORT is available, not bound by some other service."
Expand Down

0 comments on commit dd52b8f

Please sign in to comment.