init-browser-policies.bash: create browser directories and symlink just policies directory

Resolves: plasma-browser-extension failing to install and unpack due to edge/native-messaging-hosts being a symlink to existing file
This commit is contained in:
Aminda Suomalainen 2024-05-23 08:27:45 +03:00
parent cb57ba5e3e
commit 6d2dc44b39
Signed by: Mikaela
SSH Key Fingerprint: SHA256:CXLULpqNBdUKB6E6fLA1b/4SzG0HvKD19PbIePU175Q

View File

@ -34,17 +34,21 @@ chmod -v a+rx /etc/opt/chromium/policies/
chmod -v a+rx /etc/opt/chromium/policies/{managed,recommended}/ chmod -v a+rx /etc/opt/chromium/policies/{managed,recommended}/
# Brave # Brave
ln -fnsv /etc/opt/chromium /etc/brave mkdir -p /etc/brave
ln -fnsv /etc/opt/chromium/policies /etc/brave/policies
# Vivaldi # Vivaldi
ln -fnsv /etc/opt/chromium /etc/chromium mkdir -p /etc/chromium
ln -fnsv /etc/opt/chromium/policies /etc/chromium/policies
# Google Chrome # Google Chrome
ln -fnsv /etc/opt/chromium /etc/opt/chrome mkdir -p /etc/opt/chrome
ln -fnsv /etc/opt/chromium/policies /etc/opt/chrome/policies
# Microsoft Edge # Microsoft Edge
# I used to have a separate policy for it so remember to remove this manually # I used to have a separate policy for it so remember to remove this manually
# if it exists! # if it exists!
ln -fnsv /etc/opt/chromium /etc/opt/edge mkdir -p /etc/opt/edge
ln -fnsv /etc/opt/chromium/policies /etc/opt/edge/policies
set +x set +x