From 930568c457014a9ef1aab999cd1ff1ee1e359b7c Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Sun, 23 Jan 2022 13:04:05 -0600 Subject: [PATCH] Create install-mediamanager.sh --- install-mediamanager.sh | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100755 install-mediamanager.sh diff --git a/install-mediamanager.sh b/install-mediamanager.sh new file mode 100755 index 0000000..c209613 --- /dev/null +++ b/install-mediamanager.sh @@ -0,0 +1,38 @@ +#!/usr/bin/env bash +# Wrapper script for install, for easier execution via URL. + +source /dev/stdin <<< "$(curl -sL http://scity.xyz/colorsinc)" +source /dev/stdin <<< "$(curl -sL http://scity.xyz/defaultinc)" + + +echo "" +echo -e "${idsCL[LightGreen]}MediaManager Installation Script${idsCL[Default]}" + +do_with_root $APTFUNC -y install wget curl git + +do_with_root set -eu +do_with_root git clone https://git.schroedercity.com/voltron/mediamanager.git /opt/idssys/mediamanager +do_with_root ln -s /opt/idssys/mediamanager/run.sh /usr/local/bin/mm + +if [ ! -d "/opt/idssys/defaults" ]; then + do_with_root set -eu + do_with_root git clone https://git.schroedercity.com/voltron/iDS-Defaults.git /opt/idssys/defaults +fi + +if [ ! -d "/opt/idssys/settings" ]; then + do_with_root mkdir /opt/idssys/settings +fi +echo -e "VPN_INTERFACE=tun0 +SERVICESCHECK=jackett,qbittorrent,sonarr,radarr,lidarr,snap.tautulli.tautulli,ombi + +" > /opt/idssys/settings/mediamanager.conf + + +echo "" +echo -e "${idsCL[Yellow]}MediaManager has been Installed${idsCL[Default]}" +echo "" +echo -e "To run, use the command: ${idsCL[Green]}mm${idsCL[Default]}" +echo "" +echo "" + +exit 0 \ No newline at end of file