init-browser-policies.bash: rm recursive symlinks caused by multiple runs

This commit is contained in:
Aminda Suomalainen 2024-05-14 10:20:55 +03:00
parent 303af92a6a
commit 0ce24f54d9
Signed by: Mikaela
SSH Key Fingerprint: SHA256:CXLULpqNBdUKB6E6fLA1b/4SzG0HvKD19PbIePU175Q

View File

@ -13,6 +13,7 @@ printf "WARNING! LibreWolf default profile may be masked!\nhttps://codeberg.org/
# Firefox ESR # Firefox ESR
ln -sfv /etc/firefox /etc/firefox-esr ln -sfv /etc/firefox /etc/firefox-esr
rm -fv /etc/firefox-esr/firefox-esr
# Chromium # Chromium
mkdir -vp /etc/opt/chromium/policies/managed mkdir -vp /etc/opt/chromium/policies/managed
@ -22,12 +23,15 @@ chmod -v a+rx /etc/opt/chromium/policies/{managed,recommended}/
# Brave # Brave
ln -sfv /etc/opt/chromium /etc/brave ln -sfv /etc/opt/chromium /etc/brave
rm -fv /etc/brave/brave
# Vivaldi # Vivaldi
ln -sfv /etc/opt/chromium /etc/chromium ln -sfv /etc/opt/chromium /etc/chromium
rm -fv /etc/chromium/chromium
# Google Chrome # Google Chrome
ln -sfv /etc/opt/chromium /etc/opt/chrome ln -sfv /etc/opt/chromium /etc/opt/chrome
rm -fv /etc/etc/opt/chrome/chrome
# Microsoft Edge # Microsoft Edge
# NOTE! It breaks chrome:// URLs so the recommended policy apps as new tab page # NOTE! It breaks chrome:// URLs so the recommended policy apps as new tab page
@ -36,6 +40,7 @@ ln -sfv /etc/opt/chromium /etc/opt/chrome
#ln -sfv /etc/opt/chromium /etc/opt/edge #ln -sfv /etc/opt/chromium /etc/opt/edge
mkdir -vp /etc/opt/edge/policies/recommended mkdir -vp /etc/opt/edge/policies/recommended
ln -sfv /etc/opt/chromium/policies/managed /etc/opt/edge/policies/managed ln -sfv /etc/opt/chromium/policies/managed /etc/opt/edge/policies/managed
rm -fv /etc/opt/edge/policies/managed/managed
printf "WARNING! Edge recommended profiles are managed separately.\n" printf "WARNING! Edge recommended profiles are managed separately.\n"
set +x set +x