Change sudo to doas and update setup

This commit is contained in:
2021-07-16 16:54:09 +01:00
parent f4b28de956
commit 8541b1e861
9 changed files with 27 additions and 26 deletions

View File

@@ -6,5 +6,5 @@ echo "Configuring MapTool"
if [ -f "${XDG_CONFIG_HOME:-$HOME/.config}/x11/.DPI" ]; then
DPI="$(cat "${XDG_CONFIG_HOME:-$HOME/.config}/x11/.DPI")"
SCALE="$(((DPI+48)/96))"
sudo -A sed -i "/\[JavaOptions\]/a -Dsun.java2d.uiScale=$SCALE" /opt/maptool/lib/app/MapTool.cfg
doas -A sed -i "/\[JavaOptions\]/a -Dsun.java2d.uiScale=$SCALE" /opt/maptool/lib/app/MapTool.cfg
fi