Add custom URL for Plex web service

- Updated running_services_location() function to display custom URL for Plex web service.
- If the service is Plex, the URL is now displayed as "http://$host_ip:${services[$service]}/web".
This commit is contained in:
Roger Gonzalez 2025-03-19 15:26:46 -03:00
parent 8886f0c56a
commit 1321db8634
Signed by: rogs
GPG Key ID: C7ECE9C6C36EC2E6
2 changed files with 10 additions and 2 deletions

View File

@ -376,7 +376,11 @@ running_services_location() {
echo -e "Service URLs:" echo -e "Service URLs:"
for service in "${!services[@]}"; do for service in "${!services[@]}"; do
echo "$service: http://$host_ip:${services[$service]}/" if [ "$service" = "plex" ]; then
echo "$service: http://$host_ip:${services[$service]}/web"
else
echo "$service: http://$host_ip:${services[$service]}/"
fi
done done
} }

View File

@ -309,7 +309,11 @@ running_services_location() {
echo -e "Service URLs:" echo -e "Service URLs:"
for service in "${!services[@]}"; do for service in "${!services[@]}"; do
echo "$service: http://$host_ip:${services[$service]}/" if [ "$service" = "plex" ]; then
echo "$service: http://$host_ip:${services[$service]}/web"
else
echo "$service: http://$host_ip:${services[$service]}/"
fi
done done
} }