Skip to content

Commit

Permalink
Merge pull request #729 from stephendade/patch-2
Browse files Browse the repository at this point in the history
configuration: Ensure PERSISTENCE_PATH is correctly set
  • Loading branch information
brothercorvo authored Aug 29, 2024
2 parents b7bbe5c + 91304bc commit 2b7915f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions FreeTAKServer/core/configuration/MainConfig.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
ROOTPATH = "/"
MAINPATH = Path(__file__).parent.parent.parent
USERPATH = rf"{ROOTPATH}usr/local/lib/"
PERSISTENCE_PATH = r'/opt/fts'
PERSISTENCE_PATH = os.environ.get('FTS_PERSISTENCE_PATH', r'/opt/fts')

class MainConfig:
"""
Expand Down Expand Up @@ -59,7 +59,7 @@ class MainConfig:
"MaxReceptionTime": {"default": 4, "type": int},
"LogLevel": {"default": "info", "type": str},
"UserPersistencePath": {
"default": Path("/opt/user_persistence.txt"),
"default": Path(f"{PERSISTENCE_PATH}/user_persistence.txt"),
"type": str,
},
# number of milliseconds to wait between each iteration of main loop
Expand Down

0 comments on commit 2b7915f

Please sign in to comment.