1. Beatrix Willius
  2. Valentina Server
  3. 火, 5月 28 2024, 11:51 AM
  4.  メールで購読
I have a custom installer for Valentina Server which works fine. The default verbose level for Valentina ini is 2. Is there a way to change the default verbose level to 1 when installing Valentina Server? I don't want to install an ini file because you could do changes in the future to the file with new properties.
コメント
There are no comments made yet.
Ivan Smahin 承諾済みの回答
Hi Beatrix,

The first thing that comes to my mind is using something like sed in some script. Another one is changing it via SQL - "set property VERBOSELEVEL of server to 1" - it affects immediately.
コメント
There are no comments made yet.
Beatrix Willius 承諾済みの回答
In both cases I don't know if the server was installed totally new or just a new version over an existing one.
コメント
There are no comments made yet.
Ivan Smahin 承諾済みの回答
Yes, you don't know, but why it bothers you?

The first approach could be implemented in some post_install script running from the installer as a final step.
So, you know the installation directory, vServer actual name, and so, you know actual INI, and you may modify VERBOSELEVEL there using "sed".

The second approach is about to be implemented in your app, so any time it runs, it may check the VERBOSELEVEL and change it if needed. And VERBOSELEVEL changes are immediately applied to the vServer, so no need to restart vServer.
コメント
There are no comments made yet.
Ivan Smahin 承諾済みの回答
Regarding "what if the new vServer version has new/renamed variables" in the INI, but user has an "old" iNI.

"Renamed vars" - is always safe to keep "old" ones, internally it's implemented in this way - the "old" name becomes an alias to the "new" name.

"New vars" - each INI param has a default value, so if no "new var" is mentioned in the INI, it will be inited with the default value, so it would not be something like "missing new features" issue.
コメント
There are no comments made yet.
Beatrix Willius 承諾済みの回答
Thanks! I have been overthinking as usual. Then I'll just change the default ini file.

The users of the version of my app with Valentina Server are not really the sys admins I expected the app to use. Therefore, I do everything I can to simplify the installation.
コメント
There are no comments made yet.
  • ページ :
  • 1


There are no replies made for this post yet.
However, you are not allowed to reply to this post.

Categories

Announcements & News
  1. 0 subcategories
Valentina Studio
  1. 2 subcategories
Valentina Server
  1. 4 subcategories
Valentina Database ADK
  1. 0 subcategories
Valentina Reports ADK
  1. 0 subcategories
Other Discussions
  1. 2 subcategories
BETA Testing
  1. 0 subcategories
Education & Research
  1. 0 subcategories