mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-11-14 09:16:11 +01:00
update jwt secret
This commit is contained in:
@@ -4998,6 +4998,9 @@ StrictHostKeyChecking no
|
|||||||
# Use sed to replace the line in-place (macOS compatible)
|
# 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}'"
|
sed_cmd = f"sed -i '' 's|JWT_SECRET = \"{m.group(1)}\"|JWT_SECRET = \"{new_secret}\"|' '{fastapi_file}'"
|
||||||
ProcessUtilities.outputExecutioner(sed_cmd)
|
ProcessUtilities.outputExecutioner(sed_cmd)
|
||||||
|
|
||||||
|
command = 'systemctl restart fastapi_ssh_server'
|
||||||
|
ProcessUtilities.outputExecutioner(command)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user