etc: add quick script init-browser-policies.bash

This commit is contained in:
Aminda Suomalainen 2024-02-05 20:54:17 +02:00
parent e672d04d46
commit f4c796c5ed
Signed by: Mikaela
SSH Key Fingerprint: SHA256:CXLULpqNBdUKB6E6fLA1b/4SzG0HvKD19PbIePU175Q

25
etc/init-browser-policies.bash Executable file
View File

@ -0,0 +1,25 @@
#!/usr/bin/env bash
# This script will create the direcories or symlinks that browsers look for
# their policies. The user is trusted to setup those manually.
set -x
# Firefox and LibreWolf (caution! https://codeberg.org/librewolf/issues/issues/1767)
mkdir -p /etc/firefox/policies
#touch /etc/firefox/policies/policies.json
# Chromium
mkdir -p /etc/opt/chromium/policies/managed
# Brave
ln -s /etc/opt/chromium /etc/brave
# Vivaldi
ln -s /etc/opt/chromium /etc/chromium
# Google Chrome
ln -s /etc/opt/chromium /etc/opt/chrome
# Microsoft Edge
ln -s /etc/opt/chromium /etc/opt/edge
set +x