From bb8d95f549350e7bd7408b69ba4145862254163c Mon Sep 17 00:00:00 2001 From: Roger Gonzalez Date: Sat, 7 Jan 2023 11:55:35 -0300 Subject: Added yams script --- run.sh | 5 ----- setup.sh | 14 +++++++++----- yams | 14 ++++++++++++++ 3 files changed, 23 insertions(+), 10 deletions(-) delete mode 100755 run.sh create mode 100755 yams diff --git a/run.sh b/run.sh deleted file mode 100755 index ed21180..0000000 --- a/run.sh +++ /dev/null @@ -1,5 +0,0 @@ -#!/usr/bin/env sh - -set -eu - -docker-compose -f $1 up -d diff --git a/setup.sh b/setup.sh index 1a551d3..943e8b3 100755 --- a/setup.sh +++ b/setup.sh @@ -113,6 +113,9 @@ sed -i -e "s//$pgid/g" $filename # Set entertainment_folder sed -i -e "s;;$entertainment_folder;g" $filename +# Set yams script +sed -i -e "s//$filename" yams.sh + send_success_message "Everything installed correctly! 🎉" read -p "Do you want to run the script now? [Y/n]: " run_now run_now=${run_now:-"y"} @@ -158,11 +161,12 @@ 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: $host_ip:8989/" - echo "Radarr: $host_ip:7878/" - echo "Bazarr: $host_ip:6767/" - echo "Jackett: $host_ip:9117/" - echo "Emby: $host_ip:8096/" + 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/" + echo "You might need to wait for a couple of minutes while everything gets up and running" else echo "========================================================" echo "Since YAMS is not running yet, to run it just execute:" diff --git a/yams b/yams new file mode 100755 index 0000000..cba00c0 --- /dev/null +++ b/yams @@ -0,0 +1,14 @@ +#!/bin/bash +set -eu + +if [ $1 == "restart" ]; then + docker-compose -f stop && docker-compose up -d +fi + +if [ $1 == "stop" ]; then + docker-compose -f stop +fi + +if [ $1 == "start" ]; then + docker-compose -f up -d +fi -- cgit v1.2.3