2024-04-13 06:49:18 -07:00

14 lines
244 B
Bash
Executable File

#!/bin/bash
BIN=/opt/obsidian/obsidian
# Run normally on privved containers or modified un non priv
if grep -q 'Seccomp:.0' /proc/1/status; then
${BIN} \
"$@" > /dev/null 2>&1
else
${BIN} \
--no-sandbox \
"$@" > /dev/null 2>&1
fi