Reorder service stop command in entrypoint script for clarity during removal process
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing

This commit is contained in:
gyurix
2025-05-15 14:43:02 +02:00
parent e23001223c
commit bc7d30ea59

View File

@@ -196,11 +196,6 @@ remove_additionals() {
rm $DOMAIN.tmp
done
# stop service
# force - remove stopped container, docker rm
debug "$service_exec service-$NAME.json stop force dns-remove"
$service_exec service-$NAME.json stop force dns-remove
# remove related directories and files
# get volume destinations
DESTINATIONS=""
@@ -222,6 +217,11 @@ remove_additionals() {
fi
done
# stop service
# force - remove stopped container, docker rm
debug "$service_exec service-$NAME.json stop force dns-remove"
$service_exec service-$NAME.json stop force dns-remove
# remove service files
rm $SERVICE_DIR/*"-"$NAME.json # service, domain, etc.