From 66a0ad5f232a601b9df7871c0f107325f4c36ace Mon Sep 17 00:00:00 2001 From: Roger Gonzalez Date: Sat, 7 Jan 2023 12:42:46 -0300 Subject: Saving the running services to a file --- setup.sh | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/setup.sh b/setup.sh index 2db2765..3cd0751 100755 --- a/setup.sh +++ b/setup.sh @@ -42,6 +42,15 @@ check_dependencides() { fi } +running_services_location() { + host_ip=$(hostname -I | awk '{ print $1 }') + echo "Sonarr: http://$host_ip:8989/" + echo "Radarr: http://$host_ip:7878/" + echo "Bazarr: http://$host_ip:6767/" + echo "Jackett: http://$host_ip:9117/" + echo "Emby: http://$host_ip:8096/" +} + # ============================================================================================ # Check all the prerequisites are installed before continuing # ============================================================================================ @@ -161,14 +170,11 @@ send_success_message "All done!✅ Enjoy YAMS!" echo "You can check the installation on $install_location" if [ $run_now == "y" ]; then echo "========================================================" - host_ip=$(hostname -I | awk '{ print $1 }') echo "Everythins should be running now! To check everything running, go to:" - echo "Sonarr: http://$host_ip:8989/" - echo "Radarr: http://$host_ip:7878/" - echo "Bazarr: http://$host_ip:6767/" - echo "Jackett: http://$host_ip:9117/" - echo "Emby: http://$host_ip:8096/" + running_services_location echo "You might need to wait for a couple of minutes while everything gets up and running" + echo "All the services location are also saved in ~/yams_services.txt" + running_services_location > ~/yams_services.txt else echo "========================================================" echo "Since YAMS is not running yet, to run it just execute:" -- cgit v1.2.3