Why fix script runs every time I install the plugin

xuchangchen
ServiceNow Employee
ServiceNow Employee

Hi, all

I have a fix script in the scoped plugin, usually fix script runs when we upgrade from lower version to a higher version and it always work like this.

However, this time the fix script I have runs every time after I zbooted and install the plugin, is this an expected behavior? If so, do we have a way to prevent this?

Here is the setting of my fix script:

active: true

before: false

flush_cache: false

run_once: true

unloadable: false

Thanks

5 REPLIES 5

I think without 'run once', the fix script will run everytime you install or upgrade, so 'run once' will still need to be checked, but interesting idea to add a precondition to determine if the plugin is installed for the first time, do you have an idea how to check that? thanks!