Skip to content

Commit

Permalink
Update endbanner.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
MrDoobPG authored and MrDoobPG committed Nov 19, 2019
1 parent e12b73c commit 757cb89
Showing 1 changed file with 38 additions and 1 deletion.
39 changes: 38 additions & 1 deletion menu/pgbox/endbanner.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ domain=$(cat /var/plexguide/server.domain)
port=$(cat /tmp/program_port)
ip=$(cat /var/plexguide/server.ip)
ports=$(cat /var/plexguide/server.ports)
hdpath=$(cat /var/plexguide/server.hd.path)
cclean=$(cat /var/plexguide/cloneclean)
tclean=$(($cclean*2))

if [ "$program" == "plex" ]; then extra="/web"; else extra=""; fi

Expand Down Expand Up @@ -75,7 +78,7 @@ if [[ "$program" == *"sonarr"* ]] || [[ "$program" == *"radarr"* ]] || [[ "$prog
$program requires additional manual configuration!
EOF
if [[ "$program" == *"sonarr"* ]] || [[ "$program" == *"radarr"* ]] || [[ "$program" == *"lidarr"* ]]; then
if [[ "$program" == *"sonarr"* ]] || [[ "$program" == *"radarr"* ]] || [[ "$program" == *"lidarr"* ]] || [[ "$program" == *"qbittorrent"* ]]; then
tee <<-EOF
$program requires "downloader mappings" to enable hardlinking and rapid importing.
Expand All @@ -101,6 +104,40 @@ EOF
EOF
fi

####--------


if [[ "$program" == *"sabnzbd"* ]] || [[ "$program" == *"nzbget"* ]] ; then
tee <<-EOF
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
💬 NOTE / INFO
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
for incomplete download the $program used the folder $hdpath/incomplete/nzb
for finished downloads the $program used the folder $hdpath/downloads/nzb
beware the cloneclean is set to $cclean min
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
EOF
fi

if [[ "$program" == *"rutorrent"* ]] || [[ "$program" == *"qbittorrent"* ]] || [[ "$program" == *"deluge"* ]]; then
tee <<-EOF
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
💬 NOTE / INFO
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
for incomplete download the $program used the folder $hdpath/incomplete/torrent
for finished downloads the $program used the folder $hdpath/downloads/torrent
beware the cloneclean is set to $tclean min
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
EOF
fi
if [ "$program" == "plex" ]; then
tee <<-EOF
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Expand Down

0 comments on commit 757cb89

Please sign in to comment.