mirror of
https://github.com/aykhans/my-self-host-services.git
synced 2025-11-29 16:09:49 +00:00
add stalwart
This commit is contained in:
18
main.sh
18
main.sh
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user