2020-06-26 11:19:29 +00:00
|
|
|
#!/bin/bash
|
|
|
|
# Get admin tool port from configuration
|
|
|
|
bind_port=$(grep bind_port $SNAP_DATA/AdGuardHome.yaml | awk -F ' ' '{print $2}')
|
|
|
|
|
2020-06-26 11:33:15 +00:00
|
|
|
if [ -z "$bind_port" ]; then
|
2020-06-26 11:19:29 +00:00
|
|
|
xdg-open http://localhost:3000
|
|
|
|
else
|
|
|
|
xdg-open http://localhost:$bind_port
|
|
|
|
fi
|
|
|
|
|