Closed spea1 closed 7 years ago
Normally installer give rights to all users for C:\Program Files\Alignak-app
so this should not be a problem.
You can also define log folder in settings.cfg
.
How do you install application ?
FYW, installation folders was discussed on #186.
Password security: If the app is running on a Windows terminal server, then "settings.cfg" and "alignakapp.log" must be moved to the "% USERPROFILE%\. alignak-app" directory.
Normally, it is not recommended to store your password in your settings.cfg
file, you should leave empty username and password or generate a token
and set it in username option.
For teminal server connexion, I've not manage this case yet... Maybe I can define a variable to define "ROOT" app folder... (ex: %ALIGNAKAPP_ROOT%
)
Like that I check at start if this var exist, if not I set default (C:\Program Files
for Windows, etc...)
@spea1 If you are agree, rename your issue or close this one and open a new one ?
For example, more users on a workstation with different settings in the "settings.cfg" how should that work?
I do not know for the moment, but I have to look at how to do this kind of thing.
I think this is very simple:
In case of multi user (with a terminal server) it would be very practical indeed.
I am not against giving back %USERAPPDATA%\Alignak-app
as other python Libs.
@mohierf your advice ?
IMHO, we should have two installation mode:
settings.cfg
located in c:\program files\Alignak-appsettings.cfg
in %USERPROFILE%\Alignak-appThe installer may propose to choose the installation scheme?
The installer may propose to choose the installation scheme?
I can do this kind of things... The problem is to tell to App after where this files are stored...
Create in "%ProgramFiles%\Alignak-app\app_work_dir.cfg" with the content app_work_dir=%ProgramFiles%\Alignak-app or app_work_dir=%USERPROFILE%\.alignak-app
Ok. I'll try to resume:
App define his ROOT_FOLDER in a file: app_workdir.cfg
who is located on default folder:
%ProgramFiles%\Alignak-app
on Win~/.local/alignak_app
for UnixI think the Config
section in settings.cfg
is no more required after.
Then settings.cfg
and alignakapp.log
files are stored / created inside ROOT_FOLDER
Like that user can define directory with needed rights more easily.
You can now define folder where App write logs and search his settings.cfg
.
Please use "%USERPROFILE%\.alignak-app-develop" directory for:
Start app as usere from "C:\Program Files\Alignak-app\alignak-app.exe"