15 lines
321 B
Python
Executable File
15 lines
321 B
Python
Executable File
#!/usr/bin/env python3
|
|
import os
|
|
import sys
|
|
|
|
|
|
def main() -> int:
|
|
redis_url = os.getenv("OPENSIPS_REDIS_URL", "redis:s20://127.0.0.1:6380/")
|
|
config = sys.stdin.read()
|
|
sys.stdout.write(config.replace("@@LISGLOSIPS_REDIS_URL@@", redis_url))
|
|
return 0
|
|
|
|
|
|
if __name__ == "__main__":
|
|
raise SystemExit(main())
|