FreeTAKTeam/UI

FTS update command overwrites config.py file

Opened this issue · 2 comments

Running the FTS update command, <Pip install --upgrade freetakserver[UI]> results in overwriting of the user's config.py file and thus the loss of the user's customized settings for IP address assigned to FTS and FTS-UI.

  • Work around: User must reedit the config file (/root/fts.venv/lib/python3.11/site-packages/FreeTAKServer-UI/config.py) with their desired FTS IP address setting.

Suggestion is to move the configuration file out of the installation directory and into the opt subdirectory to prevent overwrites.

I would say into the /opt/fts directory.
The https://github.com/FreeTAKTeam/FreeTakServer/blob/master/FreeTAKServer/core/configuration/MainConfig.py is not updated directly but uses the /opt/fts/FTSConfig.yaml,
maybe the UI config.py should do something similar?