Jump to content
Squid

[Plugin] CA Config Editor

28 posts in this topic Last Reply

Recommended Posts

large.png

CA Config Editor

 

A simple plugin to allow you to easily edit any of unRaid's configuration files (or actually any file on your server) within your browser without having to go to the command line.  (including syslinux.cfg)

 

While most of unRaid's settings are available to be modified within its webUI, there are some cases where it is required / desired to manually edit them.  This plugin will allow you to do that.

 

Backups of files edited are automatically created (filename.bak), and can be restored by copying from the backup window.

 

Additionally, any file present on your server in any folder can also be edited beyond the .cfg files that shortcuts are available for.  This is helpful for when a docker application requires you to make some changes within its config files in the appdata folder, but either permissions prevent you from doing this over the network, or you're not familiar with the command line.

 

The usual warnings apply:  Changes to the configuration files could have unintended results if you enter in wrong values. 

 

Install it via the Apps Tab (where else?).  Either go to the CA Modules section, or search for Config and scroll down to CA Config Editor.

Once installed, you can find the plugin within the Tools tab.

 

Untitled_zpsbj9vnefz.thumb.PNG.50f242871b14f1843f3faff74c2e4c7a.PNG

 

 

Edited by Squid

Share this post


Link to post

Nice.....

Might want to add a disclaimer that you only support the plugin and not the potential problems people can find themselves in by modifying stuff though mate.

Share this post


Link to post
1 hour ago, CHBMB said:

Nice.....

Might want to add a disclaimer that you only support the plugin and not the potential problems people can find themselves in by modifying stuff though mate.

WOW! Cool AND Scary! What more could you want!

 

And it works as a file viewer of course. No more launching puTTY just to look at something. Midnight Commander F3 and F4 are now obsolete!

 

 

edit.png

Share this post


Link to post

Nice Touch with the auto Backfile Creation

 

I love the fact I can drill down to my Flash Drive and edit all of my user.scripts too

Share this post


Link to post
4 minutes ago, kizer said:

edit all of my user.scripts too

Easier doing the user scripts within the plugin itself.  No drilling req.

Share this post


Link to post

Hey Thanks for that Reply. I didn't realize there was an update to user.scripts. Nice Job. I like it. 

Share this post


Link to post
6 hours ago, trurl said:

WOW! Cool AND Scary! What more could you want!

 

That really did make me laugh out loud!  :D

Share this post


Link to post

Underwoodfive.jpg

( ^ in case you don't know what cr/lf mean)

 

- Various improvements in the UI and error handling

- Fixed: Preserve Linux or DOS style line endings when saving by default (previously, would save everything in linux format regardless of the source format)

- Added: Ability to switch between Linux or DOS style line endings

Edited by Squid

Share this post


Link to post

Not all of us are old enough to remember typewriters......

I am, but that's not the point.

Good sentiment though. Lol

Share this post


Link to post
On 4/8/2017 at 3:05 AM, CHBMB said:

Good sentiment though. Lol

Except that I was just thinking that a typewriter does a lfcr whereas windows does crlf.  Did Microsoft get it wrong?

Share this post


Link to post
7 minutes ago, Squid said:

Did Microsoft get it wrong?

On so many levels it hurts to think about it.....

Share this post


Link to post

It's not something that comes up very often, but would it be possible to change the font size of the files being edited, or maybe add a horizontal scroll bar instead of doing a line wrap? 

Share this post


Link to post

horizontal scroll bar

ok.  done

change the font size

zoom the browser

Edited by Squid

Share this post


Link to post

Love this!

 

Is it possible to increase the size of the editing window? :) Wider and taller. Feels like I'm looking through a periscope for some larger file (like rtorrent.rc)

Share this post


Link to post
Is it possible to use this to rename a config file? 
No

Sent via telekinesis

Share this post


Link to post

Thought it was worth mentioning that if you have a '/boot/config/stop' file then it is not showing up as a file to be edited. 

Share this post


Link to post
3 minutes ago, itimpi said:

'/boot/config/stop'

Because it's not a .cfg file

 

But, is that a standard file that is executed by unRaid itself when stopping the array?  If so, then I've missed the memo there.

Share this post


Link to post

It seems to mirror the purpose of "go". Its hooked in via one of the rc.d scripts if my memory hasn't failed me. I haven't seen anyone use it and I see more hooked in via rc.local.shutdown.

 

Apply ECC Bits as needed for this memory dump.

Share this post


Link to post

This is honestly the first I've heard of it.  🤔

Share this post


Link to post
Posted (edited)

I can confirm that if the stop file is present Unraid runs it as part of the shutdown processing.   As was mentioned it is a complement to the go file.

 

I have some drives I always want mounted regardless of whether the array is started or not so I mount them in the 'go' file.  I then use the 'stop' file to tidily unmount them as part of the shutdown processing.   This particular task  could now be handled by the UD plugin, but as far as I know the stop file is not deprecated.

Edited by itimpi

Share this post


Link to post

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.