Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

event triggers not seeing environment variables

Featured Replies

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.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.