plugin .page script?


PeterB

Recommended Posts

Since I posted here a couple of weeks ago, I have been attempting to resurrect one of my old plugins, originally created about ten years ago.

 

At that time, I copied an example and customised to create my .plg file.  One of the elements in the .plg is an inline .page file.

 

At that time, clicking on the 'Apply' button would invoke an rc.d/rc.<app> script.  I find, now, that the rc.d file is no longer run from the web gui (it runs fine when invoked from the console).

 

Ten years ago, "runCmd" in the submit for the 'Apply' button magically took the content of "cmd" and used that to invoke the rc.d script.

 

I would be extremely grateful if anyone can assist me to get that working again, or can offer a simple example .page which I can copy.

 

I attach my .page file.

mpop.page

Edited by PeterB
Link to comment
1 hour ago, Squid said:

See https://forums.unraid.net/topic/54237-version-630-rc9-release-notes/

 

Additionally, IIRC (Can't easily find the relevant post) you can no longer directly execute anything that's not within /usr/local/emhttp/plugins  (you also have to use a relative path of /plugins)

 

Thanks for that.  However, it seems that I don't have permission to access that topic.

 

This confirms my view that plugin documentation is a real mess, with snippets of information scattered all around!

  • Upvote 1
Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.