OCSInventory-ocsreports icon indicating copy to clipboard operation
OCSInventory-ocsreports copied to clipboard

feature request - BEFORE script

Open sokatra opened this issue 6 years ago • 1 comments

It's hard to solve a problem when important details are missing, that why we added this template, to help you and us.

General informations

Operating system : Linux x86_64 3.10.0-327.18.2.el7.x86_64

Server installation method ( Only one choice )

  • [ ] RPM Package
  • [ ] Install SH
  • [ ] Manual installation http://demo.ocsinventory-ng.org/?function=server_infos

Server informations

Php version : 5.6.36 Mysql / Mariadb / Percona version : MariaDB Server version 5.5.56-MariaDB Apache version : Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips

OCS Inventory informations

Ocsreports version : 2.4

Problem's description

It would be nice if the display user interaction dialog is dynamic Example. if i create a package with a a user dialog i do this mainly to inform the user that my package will end some processes (IE Explorer etc.) This isn't necessary if nobdy is logged on. But if i deploy a package with this dialog - the package won't be installed, because the client waits for user interaction. Timeout(in package)value isn't comfortable for this because i don't want to end user applications without his knowlege. Solution

  1. the ocs-client should allow to start a script BEFORE the first user dialog. This script query some info (somebody logged in, processes are running - or similar). If this script returns a zero (means nobody is logged in, or no processes are running) NO Dialog will be displayed What i even can do that the "before" script checks if a specific user is logged in - and if that is the case i also do not display a message on the client because that user will be used to install a new pc.

I have programmed this manually with a script, but i can't use the ocs Dialog and must to circumvent the session 0 isolation

sokatra avatar Jul 11 '18 09:07 sokatra

the open source software OPSI also uses a BEFORE script to detect environment or installation prerequisites since years

look here https://wiki.mozilla.org/ReleaseEngineering/OPSI

sokatra avatar Dec 18 '18 10:12 sokatra