mirror of
https://github.com/unraid/webgui.git
synced 2026-01-03 16:14:54 -06:00
fix: diagnostics: use find with sed to properly handle wildcards in config files
This commit is contained in:
@@ -500,7 +500,7 @@ if (!$all) {
|
||||
}
|
||||
// anonymize configuration files
|
||||
if (!$all) {
|
||||
run("sed -ri 's/^((disk|flash)(Read|Write)List.*=\")[^\"]+/\\1.../' ".escapeshellarg("/$diag/config/*.cfg")." 2>/dev/null");
|
||||
run("find ".escapeshellarg("/$diag/config")." -name '*.cfg' -exec sed -ri 's/^((disk|flash)(Read|Write)List.*=\")[^\"]+/\\1.../' {} \\; 2>/dev/null");
|
||||
// anonymize IP addresses
|
||||
maskIP("/$diag/config/network.cfg");
|
||||
// anonymize wireless credentials
|
||||
|
||||
Reference in New Issue
Block a user