Wrapper Script for use with Unraid's User Scripts plugin #145
Replies: 4 comments 5 replies
-
Sorry for not responding here! I'll try to read through it and give some feedback asap! |
Beta Was this translation helpful? Give feedback.
-
An update: I'm realizing I misunderstood its ability to update itself, and thought that -a would also upgrade dockcheck. I'll have to figure out some fixes. |
Beta Was this translation helpful? Give feedback.
-
A few questions and suggestions on the script: What's the goal of the variable expansion in this line? I mean in clear text what do you do with it :)
When would there be a
I would probably be careful with double-quoting, eg: And quoting in general - I'd quote variables + paths in other places too like I'm gonna add a new option flag And I'll add your User Script to extras + readme when you consider it done and working 😄 and if there's future changes you can make a PR or just message me / make an issue. |
Beta Was this translation helpful? Give feedback.
-
I just updated it. It's a bit bigger, but safer for sure, and also cleaner. Changes:
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Now I'm certainly no bash wizard, but I wanted a version of this which I could use with Unraid. I've done a bit of studying into how User Scripts run, and here is what I came up with. Unraid already has jq installed, so I only needed to grab the regctl binary. If the files don't exist, the script downloads them, then moves them into place. I don't have automatic downloading of notify.sh, you'll have to move that into place yourself. But, if dockcheck updates itself, it should automatically replace itself.
I'd be happy to see if anyone has any improvements they'd like to suggest, as I said, Bash scripting is not my forte.
Beta Was this translation helpful? Give feedback.
All reactions