summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xrun.sh5
-rwxr-xr-xsetup.sh14
-rwxr-xr-xyams14
3 files changed, 23 insertions, 10 deletions
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/<your_PGID>/$pgid/g" $filename
# Set entertainment_folder
sed -i -e "s;<entertainment_folder>;$entertainment_folder;g" $filename
+# Set yams script
+sed -i -e "s/<filename>/$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 <filename> stop && docker-compose up -d
+fi
+
+if [ $1 == "stop" ]; then
+ docker-compose -f <filename> stop
+fi
+
+if [ $1 == "start" ]; then
+ docker-compose -f <filename> up -d
+fi