Add proper Cleanup script.

Chore following such addition.
This commit is contained in:
Guillaume
2023-06-08 19:38:17 +02:00
parent 2945d21c93
commit aa18ef3224
4 changed files with 85 additions and 23 deletions

View File

@ -1,7 +1,5 @@
#!/bin/bash
#
D2C_CTR_NAME=dir2config
DLS_CTR_NAME=dls
# Admin token to unlock the DLS store
DLS_UNLOCK_TOKEN=changeme
#
@ -24,7 +22,7 @@ dir2config() {
}
start_store() {
if docker ps|grep " $DLS_CTR_NAME$" ; then
if docker ps|grep " $DLS_CTR_NAME$" &>/dev/null; then
pinfo "Container $DLS_CTR_NAME seems already running"
return
fi