update jwt secret

This commit is contained in:
usmannasir 2025-05-18 18:19:31 +05:00
parent 624246c68a
commit 580f9d94bc
1 changed files with 3 additions and 0 deletions

View File

@ -4998,6 +4998,9 @@ StrictHostKeyChecking no
# Use sed to replace the line in-place (macOS compatible)
sed_cmd = f"sed -i '' 's|JWT_SECRET = \"{m.group(1)}\"|JWT_SECRET = \"{new_secret}\"|' '{fastapi_file}'"
ProcessUtilities.outputExecutioner(sed_cmd)
command = 'systemctl restart fastapi_ssh_server'
ProcessUtilities.outputExecutioner(command)
except Exception as e:
pass