Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Developing a plugin - running 'installplg myplugin' doesn't get the new version

Featured Replies

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?

  • 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

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.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.