add stalwart

This commit is contained in:
2025-11-22 22:03:00 +00:00
parent 3b687f582c
commit c44be3079c
18 changed files with 61 additions and 44 deletions

18
main.sh
View File

@@ -219,6 +219,15 @@ start_services() {
print_error "failed to start Watchtower!"
exit 1
fi
echo "Starting stalwart..."
$DOCKER_COMPOSE_COMMAND -f ./stalwart/docker-compose.yaml up --pull -d
if [ $? -eq 0 ]; then
print_success "Stalwart started successfully."
else
print_error "failed to start Stalwart!"
exit 1
fi
}
stop_services() {
@@ -365,6 +374,15 @@ stop_services() {
print_error "failed to stop Watchtower!"
exit 1
fi
echo "Stopping stalwart..."
$DOCKER_COMPOSE_COMMAND -f ./stalwart/docker-compose.yaml down
if [ $? -eq 0 ]; then
print_success "Stalwart stopped successfully."
else
print_error "failed to stop Stalwart!"
exit 1
fi
}
if [ $# -lt 1 ]; then