#!/bin/sh
#
# Aussom-Server host-side restart wrapper.
#
# Copy this script onto your PATH (typically /usr/local/bin/restart-aussom-server)
# alongside the aussom-server CLI wrapper. From then on, restart the
# running server without typing 'docker' or 'cd /srv/aussom':
#
#   restart-aussom-server
#
# Container name defaults to "aussom-server"; override with the
# AUSSOM_CONTAINER environment variable for non-default deployments.
#
# Calls 'docker restart' against the running container, which is the
# same operation as 'docker compose restart aussom-server' for the
# default single-service deployment but doesn't depend on the compose
# file's location.

exec docker restart "${AUSSOM_CONTAINER:-aussom-server}"
