Working idemptotent unit tests (start,stop,create,destroy)

Signed-off-by: Kris Nóva <kris@nivenly.com>
This commit is contained in:
Kris Nóva 2021-02-11 11:25:45 -08:00
parent 9236ba8577
commit e69880434d
6 changed files with 70 additions and 23 deletions

View file

@ -7,6 +7,13 @@
#
# Startup Script for the Application
####################################
echo "Starting [SampleApp]"
if [ $(docker ps -q -f name=photoprism) ]
then
# Photoprism is running
echo "[SampleApp] is already running..."
exit 1
fi
echo "Starting [SampleApp]"
docker start photoprism