mirror of
https://github.com/unraid/webgui.git
synced 2026-02-20 16:18:57 -06:00
rc.S: invoke testing hook for test versions only
- This is a potential security risk, which should not be active in public releases
This commit is contained in:
@@ -155,8 +155,9 @@ else
|
||||
[[ $RETVAL -gt 0 ]] && abort "failed to remount $UNRAIDROOT r/w with return value $RETVAL"
|
||||
fi
|
||||
|
||||
# invoke testing hook
|
||||
if [[ -f /boot/config/rc.S.extra ]]; then
|
||||
# invoke testing hook (only for test versions)
|
||||
. /etc/unraid-version
|
||||
if [[ -f /boot/config/rc.S.extra && $version =~ beta ]]; then
|
||||
. /boot/config/rc.S.extra
|
||||
fi
|
||||
# and continue in separate script
|
||||
|
||||
Reference in New Issue
Block a user