Update 91-universal_graphic_drivers.sh

This commit is contained in:
Alexandre
2023-09-26 21:04:27 +02:00
committed by GitHub
parent c8a05129ae
commit 4fadf8072a

View File

@@ -5,6 +5,7 @@ if bashio::config.has_value "graphic_driver"; then
# Origin : https://github.com/wumingjieno1/photoprism-test/blob/main/scripts/dist/install-gpu.sh
# abort if not executed as root
if [[ $(id -u) != "0" ]]; then
# shellcheck disable=SC2128
bashio::log.fatal "Error: Run $(basename "${BASH_SOURCE}") as root" 1>&2
exit 1
fi