Add web launcher for desktop users

This commit is contained in:
Alan Pope
2020-06-26 12:19:29 +01:00
parent 7a77dadab0
commit 8863e61e8e
8 changed files with 55 additions and 1 deletions

10
snap/local/adguard-home-web.sh Executable file
View File

@@ -0,0 +1,10 @@
#!/bin/bash
# Get admin tool port from configuration
bind_port=$(grep bind_port $SNAP_DATA/AdGuardHome.yaml | awk -F ' ' '{print $2}')
if [ -z "$bind_port"]; then
xdg-open http://localhost:3000
else
xdg-open http://localhost:$bind_port
fi