February 3Feb 3 I tried a few searches and as far as I can tell this seems to be the latest for unraid 6.xhttps://gist.github.com/LeonStoldt/51baa2ba2b879254cf5f50d381264bccBelow is a copy and paste of the content from the link. Is anyone still using this method on their unraid 7.x servers? I am just looking for a thumbs up if this is still the way to go today.Modify /boot/config/gonano /boot/config/goEdit this file to look something like this:#!/bin/bash # auto unlock array by making use of events to fetch keyfile and delete it after decryption mkdir -p /usr/local/emhttp/webGui/event/starting mkdir -p /usr/local/emhttp/webGui/event/started mkdir -p /usr/local/emhttp/webGui/event/stopped cp -f /boot/custom/bin/fetch_key /usr/local/emhttp/webGui/event/starting cp -f /boot/custom/bin/delete_key /usr/local/emhttp/webGui/event/started cp -f /boot/custom/bin/fetch_key /usr/local/emhttp/webGui/event/stopped chmod a+x /usr/local/emhttp/webGui/event/starting/fetch_key chmod a+x /usr/local/emhttp/webGui/event/started/delete_key chmod a+x /usr/local/emhttp/webGui/event/stopped/fetch_key # Start WebGUI /usr/local/sbin/emhttp &Create fetch_key filemkdir -p /boot/custom/bin/ nano /boot/custom/bin/fetch_keyand paste the following code if you want to fetch the key by sftp:In case you want to fetch the key by another method - you need to change the fetch_key script.Method 1: mount your keyfile#!/bin/bash if [[ ! -e /root/keyfile ]]; then mkdir -p /unlock mount -t cifs -o user=name,password='password',iocharset=utf8 //192.168.1.99/index /unlock cp -f /unlock/keyfile /root/keyfile umount /unlock rm -r /unlock fiMethod 2: fetch your keyfile by wget#!/bin/bash if [[ ! -e /root/keyfile ]]; then wget --ftps-implicit --user=name --password='password' ftp://url_or_IP>/files/keyfile -O /root/keyfile fiIf it doesn't work with --ftps-implicit, try without --ftps-implicit flag.remember to exchange "name", "password" and "url_or_IP" by correct values make sure your file you want to access (keyfile on source system) has the needed permissions to be read by your target system check permissions with stat filename for testing purposes you can grant all rights to this file temporarely chmod 777 filenameCreate delete_key fileTo create the delete_key file, run the following commands:nano /boot/custom/bin/delete_keyand paste the following code to delete the keyfile:#!/bin/bash rm -f /root/keyfile
February 5Feb 5 Author On 2/3/2026 at 8:31 PM, Kilrah said:See this pluginLooks like this plugin came at the right time. Thank you!
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.