selfprivacy-rest-api/selfprivacy_api/utils.py
2021-11-11 20:31:28 +02:00

8 lines
195 B
Python

#!/usr/bin/env python3
# Get domain from /var/domain without trailing new line
def get_domain():
with open("/var/domain", "r") as f:
domain = f.readline().rstrip()
return domain