mirror of
https://gitea.blesmrt.net/mikaela/shell-things.git
synced 2024-12-25 20:22:44 +01:00
init-browser-policies.bash: this script requires root by the way
This commit is contained in:
parent
0ce24f54d9
commit
a0795908b2
@ -3,6 +3,12 @@
|
||||
# their policies. The user is trusted to setup those manually.
|
||||
set -x
|
||||
|
||||
# Require root or exit
|
||||
if [ "$(id -u)" != "0" ]; then
|
||||
echo "This script requires root for managing /etc/" 1>&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Firefox and LibreWolf (caution! https://codeberg.org/librewolf/issues/issues/1767)
|
||||
mkdir -vp /etc/firefox/policies
|
||||
chmod -v a+rx /etc/firefox/
|
||||
|
Loading…
Reference in New Issue
Block a user