blob: 24c72e4b1e38ed5ef57153a082fc29e7f7b24786 (
plain)
1
2
3
4
5
6
7
8
|
#!/usr/bin/env bash
if [[ ! (-r /proc/sys/kernel/unprivileged_userns_clone && $(< /proc/sys/kernel/unprivileged_userns_clone) == 1 && -n $(zcat /proc/config.gz | grep CONFIG_USER_NS=y) ) ]]; then
>&2 echo "User namespaces are not detected as enabled on your system, brave will run with the sandbox disabled"
FLAG="--class=dissenter-browser --no-sandbox"
fi
exec "/opt/gab/dissenter/dissenter-browser" $@ $FLAG
|