You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix Docker entrypoint to pass flags to both cron and one-shot mode
Previously any argument triggered one-shot mode, so --quiet in cron
mode was impossible. Now only --run-once triggers one-shot. All other
flags (--quiet, --force, etc.) are passed to update.php in both modes.
Copy file name to clipboardExpand all lines: README.md
+7-1Lines changed: 7 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -100,7 +100,13 @@ To run the script once instead of starting the scheduler (e.g., to test your con
100
100
docker run --rm -v ./config.php:/app/config.php:ro stecklars/dynamic-dns-netcup-api --run-once
101
101
```
102
102
103
-
You can also pass other flags like `--force` (bypass IP cache) or `--quiet`. One-shot mode is meant for testing and manual runs — for regular use, use the cron mode above (the default) which handles scheduling, caching, and jitter automatically.
103
+
One-shot mode is meant for testing and manual runs — for regular use, use the cron mode (the default) which handles scheduling, caching, and jitter automatically.
104
+
105
+
Script flags like `--force` and `--quiet` can be used in both modes, e.g.:
106
+
107
+
```bash
108
+
docker run --rm -v ./config.php:/app/config.php:ro stecklars/dynamic-dns-netcup-api --run-once --force
109
+
```
104
110
105
111
#### Docker notes
106
112
***"Permission denied" errors on Fedora, RHEL, or openSUSE**: These systems use SELinux, which blocks container access to mounted files even if file permissions look correct. Fix this by adding the `:z` flag to all volume mounts, e.g., `-v ./config.php:/app/config.php:ro,z -v dyndns-data:/app/data:z`. This does not affect NAS systems.
0 commit comments