October 3, 201213 yr I'm toying around with writing a plugin and got a basic framework running and installed. It shows up in the Settings page and everything. I made some updates to my .plg file, ran 'installplg /path/to/myplugin.plg', but the unRaid Settings page is still serving me the old version. It outputs various things according to what I wrote, ending with "plugin successfully installed". I've tried: * Removing the old .plg from /boot/config/plugins * Incrementing the version number in the .plg None of the updates I made are showing up when I navigate to my plugin's Settings page, and the version is still showing the first version. In various other plugins here, it looks like all they do in the self-update routines is to run installplg again on the new file. It doesn't seem there's any documentation available other than examining the existing plugins that have been written. What am I missing?
October 3, 201213 yr Author Ah, looks maybe like it just won't overwrite files which already exist, in particular all the stuff under /usr/local/emhttp/plugins/myplugin
October 4, 201213 yr I see you've marked it as solved, but here is the block of code I use to allow the plug-in to update <FILE Name="/tmp/couchpotato_v2-cleanup" Run="/bin/bash"> <INLINE> <![CDATA[ [ -d /usr/local/emhttp/plugins/couchpotato_v2 ] && rm -f -R /usr/local/emhttp/plugins/couchpotato_v2 [ -f /etc/rc.d/rc.couchpotato_v2 ] && rm -f /etc/rc.d/rc.couchpotato_v2 [ -f /boot/config/plugins/couchpotato_v2/plgver.txt ] && rm -f /boot/config/plugins/couchpotato_v2/plgver.txt rm /tmp/couchpotato_v2-cleanup ]]> </INLINE> </FILE> You can most likely ignore the plgver.txt line, I use that in my plug-in itself, the other two are most likely used by yours as well(especially the first line)
Archived
This topic is now archived and is closed to further replies.