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.

/usr/local/webGui/scripts/pre update

Featured Replies

Please consider adding the following to the script

 

exec 2>&1

 

stderr seems to go nowhere.

It may be worthwhile to put a logger line in there too.

 

logger -tscripts/pre "$@"

and after the eval, capture the rc and log it.

or just check the RC and if not = 0, then log it as.

 

logger -tscripts/pre "$@" ", RC:$?"

 

 

here is my modified pre script. It only logs if the RC>0

 

#!/bin/bash

# usage: pre <command>
# Executes <command>, wrapping it's output in <pre></pre> tags.

exec 2>&1

echo '<pre>'
eval "$@"
RC=$?
echo '</pre>'
if [ ${RC} -gt 0 ]
   then logger -t$0 -puser.err <<-EOF
$@, RC:${RC}"
EOF
fi
exit ${RC}

 

here's my example.

Jul 22 15:46:33 unraidvm /usr/local/webGui/scripts/pre: atx -f /etc/cron.daily/updatedb now, RC:127"

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.