April 17, 201214 yr Hi All I have written a small plugin (still in early stages) for the serviio media server. everything is coming along nicely. However I have come across one issue I am scratching my head with. I have created a disks_mounted and unmounting_disks scripts in the /usr/local/emhttp/plugins/serviio/event folder the scripts are being executed at the correct times, I have no problems there. However, the scripts cannot see all of the environment variables. For example, when jre is installed, it created a JAVA_HOME environment variable. If I run my script when logged in as root at the unraid terminal, the script runs without a problem. However, when unraid executes my script, the variable does not exist. I have tried su and sudo to make sure I am running the script as root user, but I still can't see the environment variables. It looks like unraid is executing the scripts in a limited shell, but the user variable is empty, so I can't see which user it is. Has anyone else come across this problem and if so, how did you get around it.
Archived
This topic is now archived and is closed to further replies.