Seite 1 von 1

always and once scripts

Verfasst: 26 Jun 2018, 11:36
von gallac
hi,
i've been using opsi for a few months now and i'm only using the install and uninstall scripts for software packages.
So my question is, what exactly are "always" and "once" scripts, that i can also put into a software package?

Sincerely
gallac

Re: always and once scripts

Verfasst: 26 Jun 2018, 13:40
von r.roeder
Hi gallac,

'always'- resp. 'once' scripts materialize the corresponding 'always' resp. 'once' action request configuration for a product. The different action request differ in the configuration to which a successfull action leads:

- a successfull action request 'setup' leads do an installation state 'installed' and the action request 'none'
- a successfull action request 'uninstall' produces an installation state 'uninstalled' and the action request 'none'
- a successfull action request 'always' produces an installation state 'uninstalled' and keeps the action request 'always'
- a successfull action request 'once' does not change the installation state and produces the action request 'none'

Best greetings
Rupert