mirror of
https://github.com/linuxserver/docker-msedge.git
synced 2026-02-20 05:48:33 +08:00
22 lines
416 B
Bash
Executable File
22 lines
416 B
Bash
Executable File
#! /bin/bash
|
|
|
|
BIN=/usr/bin/microsoft-edge-real
|
|
|
|
# Cleanup
|
|
if ! pgrep msedge > /dev/null;then
|
|
rm -f $HOME/.config/microsoft-edge/Singleton*
|
|
fi
|
|
|
|
# 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
|