diff options
| author | Stefan Metzmacher <metze@samba.org> | 2025-04-03 16:55:19 +0200 |
|---|---|---|
| committer | Stefan Metzmacher <metze@samba.org> | 2025-04-18 10:17:29 +0000 |
| commit | 50c25dc6634c56904bac5fdd0d9b89574cd13815 (patch) | |
| tree | 31a0e2f070e85e231af8e388becbcc8240df2130 /ctdb/config/events | |
| parent | cbcc94be5430fee6661c48e5e67df8862cca2cd6 (diff) | |
| download | samba-50c25dc6634c56904bac5fdd0d9b89574cd13815.tar.gz samba-50c25dc6634c56904bac5fdd0d9b89574cd13815.tar.bz2 samba-50c25dc6634c56904bac5fdd0d9b89574cd13815.zip | |
ctdb:events: let 50.samba.script use 'server smb transports'
We can't only use 'server smb transports' as in ci runs
the 'testparm' binary is from the distribution and likely
be in older Samba version.
So we still fallback to 'smb ports'.
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
Diffstat (limited to 'ctdb/config/events')
| -rwxr-xr-x | ctdb/config/events/legacy/50.samba.script | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/ctdb/config/events/legacy/50.samba.script b/ctdb/config/events/legacy/50.samba.script index 195c9259ee8..7da0c399d59 100755 --- a/ctdb/config/events/legacy/50.samba.script +++ b/ctdb/config/events/legacy/50.samba.script @@ -149,7 +149,11 @@ list_samba_shares() list_samba_ports() { - testparm_get "smb ports" + { + testparm_get "server smb transports" + testparm_get "smb ports" + # only | head -1 would cause a broken pipe for the 2nd command + } | head -2 | head -1 } normalize_transports_to_tcp_ports() |
