mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-rest-api.git
synced 2024-12-01 19:06:45 +00:00
8 lines
195 B
Python
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
|