Update TEMPLATES.md
All checks were successful
Build-Test-Publish / build (linux/amd64) (push) Successful in 26s
Build-Test-Publish / build (linux/arm64) (push) Successful in 1m3s

This commit is contained in:
j
2026-01-26 21:14:32 +13:00
parent 87fee40117
commit c9fade95e9
2 changed files with 86 additions and 1 deletions

View File

@@ -296,7 +296,7 @@ esac
```
### logs.sh
Shows container logs:
Shows container logs. **OPTIONAL** - if provided, `dropshell log SERVER SERVICE` (or `dropshell logs`) will execute this script and display the output.
```bash
#!/bin/bash
@@ -306,6 +306,12 @@ _check_required_env_vars "CONTAINER_NAME"
docker logs "$CONTAINER_NAME" "$@"
```
**Usage:**
```bash
dropshell log myserver myservice
dropshell logs myserver myservice # Alias
```
### check-config.sh
Validates the service configuration without restarting or modifying the service. **OPTIONAL** - if not provided, `dropshell check-config` reports that the template doesn't support this command.