mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-11 10:21:02 +01:00
17 lines
319 B
Bash
17 lines
319 B
Bash
#! /bin/bash
|
|
|
|
BIN=/usr/bin/microsoft-edge-real
|
|
|
|
# Run normally on privved containers or modified un non priv
|
|
if grep -q 'Seccomp:.0' /proc/1/status; then
|
|
${BIN} \
|
|
--password-store=basic \
|
|
"$@" > /dev/null 2>&1
|
|
else
|
|
${BIN} \
|
|
--password-store=basic \
|
|
--no-sandbox \
|
|
--test-type \
|
|
"$@" > /dev/null 2>&1
|
|
fi
|