Plugin update mechanism (via GUI) - how does it work

Hi to the volumio developers,

i have a question how a plugin update (via GUI) works?
Is it calling uninstall.sh first or is it just starting with install.sh?

I have following problem:

  • i have to write some values to userconfig.txt (therefore i use the command sed)
  • i have heared from plugin users, that after plugin update (via GUI) there where values twice in their userconfig.txt

Maybe someone can tell me how the plugin update mechanism is working or in which install.sh of a plugin i can find some tipps.

I am looking forward hearing from you.

Regards AxLED

IIRC, the plugin updater just calls the install.sh of a plugin again. It doesn’t run uninstall.sh first.

@ashthesp
thanks for your, response so i have to change my install.sh and get deeper into sed command.
AxLED

@AxLED – This is from my (foggy) memory, best to look at what the code does.

EDIT: Checked, nope - it just runs install.sh again