-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy patharr-installer.sh
executable file
·1256 lines (1163 loc) · 34 KB
/
arr-installer.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
#!/bin/bash
clear
echo "
___ ____ _ _ ____ _ _ _ ____ ___ ____ _ _ ____ ____
/ |___ | | [__ | |\ | [__ | |__| | | |___ |__/
/__ |___ |__| ___] | | \| ___] | | | |___ |___ |___ | \
"
#This is a script to help install essentials for docker.
######################################################################
#Functions List
noanswer () { echo "Skipping..." ; }
updatesys () { yes | sudo apt-get update && sudo apt-get upgrade; }
######################################################################
echo "This script assumes you have your docker files located in your /home/$USER/raspi-docker folder."
echo " "
echo "If your folder is located elsewhere, you will need to change the location of your docker-compose files in this script, or clicking f when selecting containers."
echo " "
echo "This script follows my other guide of installing Docker and Mullvad VPN. Visit https://github.com/LordZeuss/raspi-docker for more info."
echo " "
######################################################################
#Update the system
echo " "
echo "Would you like to update your system (Recommended)? (y/n/e)"
echo " "
echo "y=yes | n=no | f=Change-container-volumes-&-location | e=exit-program"
echo " "
read -n1 yesorno
echo " "
if [ "$yesorno" = y ]; then
updatesys
echo "Update Successful."
echo " "
elif [ "$yesorno" = n ]; then
echo " "
echo "Skipping..."
echo " "
elif [ "$yesorno" = e ]; then
echo " "
echo "Goodbye!"
exit 1
else
echo " "
echo "Not a valid answer. Exiting..."
exit 1
fi
######################################################################
#Test if Docker is working and installed
echo "Would you like to check if Docker is working(Recommended)? (y/n/e)"
read -n1 yesorno
echo " "
if [ "$yesorno" = y ]; then
echo 'Checking Docker version...'
docker version
docker-compose -v
echo " "
echo "If no errors occured, Docker should be good to go."
echo "Docker-Compose build unknown is not an error"
echo " "
elif [ "$yesorno" = n ]; then
echo " "
echo "Skipping..."
elif [ "$yesorno" = e ]; then
echo " "
echo "Goodbye!"
exit 1
else
echo " "
echo "Not a valid answer. Exiting..."
exit 1
fi
######################################################################
sudo mkdir /home/$USER/raspi-docker/downloads
sudo chmod 777 /home/$USER/raspi-docker/downloads
#Install Portainer
echo "Would you like to install Portainer (Required if not already insalled)? (y/n/f/e)"
echo " "
read -n1 yesorno
if [ "$yesorno" = y ]; then
echo "portainer:
container_name: portainer
restart: unless-stopped
ports:
- 9000:9000
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /home/dockeras/portainer:/data
environment:
- PUID=1000
- PGID=1000
- TZ=US/Central
image: portainer/portainer-ce" >> /home/$USER/raspi-docker/docker-compose.yml #replace /home/$USER/raspi-docker/docker-compose.yml with the location of your docker-compose.yml file
echo " " >>/home/$USER/raspi-docker/docker-compose.yml #replace this location with the location docker-compose.yml if needed.
echo " "
echo "Successfully Added"
elif [ "$yesorno" = n ]; then
echo " "
echo "Skipping..."
elif [ "$yesorno" = f ]; then
echo " "
read -n1 -p "You have selected to change the location/volumes of this container. Would you like to continue? (y/n) " fix
echo " "
if [ "$fix" = y ]; then
echo " "
read -p "Enter the location of the docker-compose.yml file: " answer
sleep 1
echo "portainer:
container_name: portainer
restart: unless-stopped
ports:
- 9000:9000
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /home/dockeras/portainer:/data
environment:
- PUID=1000
- PGID=1000
- TZ=US/Central
image: portainer/portainer-ce" >> $answer
echo " " >> $answer
echo " "
echo "Done."
elif [ "$fix" = n ]; then
echo " "
echo "Not adding Portainer to any file."
source arr-installer.sh
return
else
echo " "
echo "Goodbye!"
exit 1
fi
elif [ "$yesorno" = e ]; then
echo " "
echo "Goodbye!"
exit 1
else
echo " "
echo "Not a valid answer. Exiting..."
exit 1
fi
######################################################################
#Install Sonarr
echo "Would you like to install Sonarr? (y/n/f/e)"
echo " "
read -n1 yesorno
if [ "$yesorno" = y ]; then
mkdir /home/$USER/raspi-docker/downloads/tv
mkdir /home/$USER/raspi-docker/sonarr
mkdir /home/$USER/raspi-docker/sonarr/config
echo "sonarr:
container_name: sonarr
restart: unless-stopped
ports:
- 8989:8989
volumes:
- /home/$USER/raspi-docker/sonarr/config:/config
- /home/$USER/raspi-docker/downloads:/downloads
- /home/$USER/raspi-docker/downloads/tv:/tv
environment:
- PUID=1000
- PGID=1000
- TZ=US/Central
image: linuxserver/sonarr" >> /home/$USER/raspi-docker/docker-compose.yml #replace /home/$USER/raspi-docker/docker-compose.yml with the location of your docker-compose.yml file
echo " " >>/home/$USER/raspi-docker/docker-compose.yml #replace this location with the location docker-compose.yml if needed.
echo " "
echo "Successfully Added"
elif [ "$yesorno" = n ]; then
echo " "
echo "Skipping..."
elif [ "$yesorno" = e ]; then
echo " "
echo "Goodbye!"
exit 1
elif [ "$yesorno" = f ]; then
echo " "
read -n1 -p "You have selected to change the location/volumes of the container. Would you like to continue? (y/n) " fix
if [ "$fix" = y ]; then
echo " "
read -p "Enter the location of the docker-compose.yml file: " sonarranswer
read -p "Enter the new location for config: " config
read -p "Enter the new location of the downloads folder: " downloads
read -p "Enter the new location of where the TV Content is: " tv
sleep 1
echo "sonarr:
container_name: sonarr
restart: unless-stopped
ports:
- 8989:8989
volumes:
- $config:/config
- $downloads:/downloads
- $tv:/tv
environment:
- PUID=1000
- PGID=1000
- TZ=US/Central
image: linuxserver/sonarr" >> $sonarranswer
echo " " >> $sonarranswer
elif [ "$fix" = n ]; then
echo " "
echo "Not adding Sonarr to any file."
source arr-installer.sh
return
else
echo " "
echo "Goodbye!"
exit 1
fi
else
echo " "
echo "Not a valid answer. Exiting..."
exit 1
fi
######################################################################
#Install Radarr
echo "Would you like to install Radarr? (y/n/f/e)"
read -n1 yesorno
if [ "$yesorno" = y ]; then
mkdir /home/$USER/raspi-docker/radarr
mkdir /home/$USER/raspi-docker/downloads/movies
mkdir /home/$USER/raspi-docker/radarr/config
echo "radarr:
image: lscr.io/linuxserver/radarr
container_name: radarr
environment:
- PUID=1000
- PGID=1000
- TZ=UTC
- UMASK=022 #optional
volumes:
- /home/$USER/raspi-docker/radarr/config:/config
- /home/$USER/raspi-docker/downloads/movies:/movies
ports:
- 7878:7878
restart: unless-stopped" >> /home/$USER/raspi-docker/docker-compose.yml #replace /home/$USER/raspi-docker/docker-compose.yml with the location of your docker-compose.yml file
echo " " >>/home/$USER/raspi-docker/docker-compose.yml #replace this location with the location docker-compose.yml if needed.
echo " "
echo "Successfully Added"
elif [ "$yesorno" = n ]; then
echo " "
echo "Skipping..."
elif [ "$yesorno" = f ]; then
echo " "
read -n1 -p "You have selected to change the location/volumes of the container. Would you like to continue? (y/n) " fix
if [ "$fix" = y ]; then
echo " "
read -p "Enter the location of the docker-compose.yml file: " radarranswer
read -p "Enter the new location for config: " rconfig
read -p "Enter the new location of where the Movie Content is: " movies
sleep 1
echo "radarr:
image: lscr.io/linuxserver/radarr
container_name: radarr
environment:
- PUID=1000
- PGID=1000
- TZ=UTC
- UMASK=022 #optional
volumes:
- $rconfig:/config
- $movies:/movies
ports:
- 7878:7878
restart: unless-stopped" >> $radarranswer
echo " " >> $radarranswer
echo " "
echo "Done."
echo " "
elif [ "$fix" = n ]; then
echo " "
echo "Not adding Radarr to any file."
source arr-installer.sh
return
else
echo " "
echo "Goodbye!"
exit 1
fi
elif [ "$yesorno" = e ]; then
echo " "
echo "Goodbye!"
exit 1
else
echo " "
echo "Not a valid answer. Exiting..."
exit 1
fi
######################################################
#Readarr
echo "Would you like to install Readarr? (y/n/f/e)"
read -n1 yesorno
if [ "$yesorno" = y ]; then
mkdir /home/$USER/raspi-docker/readarr
mkdir /home/$USER/raspi-docker/readarr/config
mkdir /home/$USER/raspi-docker/downloads/books
echo "readarr:
image: lscr.io/linuxserver/readarr:develop
container_name: readarr
environment:
- PUID=1000
- PGID=1000
- TZ=US/Central
volumes:
- /home/$USER/raspi-docker/readarr/config:/config
- /path/to/books:/books #optional
- /home/$USER/raspi-docker/downloads/books:/downloads #optional
ports:
- 8787:8787
restart: unless-stopped" >> /home/$USER/raspi-docker/docker-compose.yml #replace /home/$USER/raspi-docker/docker-compose.yml with the location of your docker-compose.yml file
echo " " >>/home/$USER/raspi-docker/docker-compose.yml #replace this location with the location docker-compose.yml if needed.
echo " "
echo "Successfully Added"
echo " "
echo "Don't forget to add the path to your books and or download client!"
echo " "
elif [ "$yesorno" = n ]; then
echo " "
echo "Skipping..."
elif [ "$yesorno" = f ]; then
echo " "
read -n1 -p "You have selected to change the location/volumes of the container. Would you like to continue? (y/n) " fix
if [ "$fix" = y ]; then
echo " "
read -p "Enter the location of the docker-compose.yml file: " readarranswer
read -p "Enter the new location for config: " rrconfig
read -p "Enter the new location of the downloads folder (Optional): " rrdownloads
read -p "Enter the new location of where the Book files are(Optional): " books
sleep 1
echo "readarr:
image: lscr.io/linuxserver/readarr:develop
container_name: readarr
environment:
- PUID=1000
- PGID=1000
- TZ=US/Central
volumes:
- $rrconfig:/config
- $rrdownloads:/downloads
- $books:/books
ports:
- 8787:8787
restart: unless-stopped" >> $readarranswer
echo " " >> $readarranswer
echo " "
echo "Done."
echo " "
elif [ "$fix" = n ]; then
echo " "
echo "Not adding Readarr to any file."
source arr-installer.sh
return
else
echo " "
echo "Goodbye!"
exit 1
fi
elif [ "$yesorno" = e ]; then
echo " "
echo "Goodbye!"
exit 1
else
echo " "
echo "Not a valid answer. Exiting..."
exit 1
fi
######################################################
#Bazarr
echo "Would you like to install Bazarr (Subtitles)? (y/n/f/e)"
read -n1 yesorno
if [ "$yesorno" = y ]; then
mkdir /home/$USER/raspi-docker/bazarr
mkdir /home/$USER/raspi-docker/bazarr/config
echo "bazarr:
image: lscr.io/linuxserver/bazarr
container_name: bazarr
environment:
- PUID=1000
- PGID=1000
- TZ=US/Central
volumes:
- /home/$USER/raspi-docker/bazarr/config:/config
- /home/$USER/raspi-docker/downloads/movies:/movies #optional
- /home/$USER/raspi-docker/downloads/tv:/tv #optional
ports:
- 6767:6767
restart: unless-stopped" >> /home/$USER/raspi-docker/docker-compose.yml #replace /home/$USER/raspi-docker/docker-compose.yml with the location of your docker-compose.yml file
echo " " >>/home/$USER/raspi-docker/docker-compose.yml #replace this location with the location docker-compose.yml if needed.
echo " "
echo "Successfully Added"
echo " "
echo "Don't forget to add the path to your movies and tv shows!"
echo " "
elif [ "$yesorno" = n ]; then
echo " "
echo "Skipping..."
elif [ "$yesorno" = f ]; then
echo " "
read -n1 -p "You have selected to change the location/volumes of the container. Would you like to continue? (y/n) " fix
if [ "$fix" = y ]; then
echo " "
read -p "Enter the location of the docker-compose.yml file: " bazarranswer
read -p "Enter the new location for config: " brconfig
read -p "Enter the new location of the Movies Folder (Optional): " brmovies
read -p "Enter the new location of the TV Folder (Optional): " brtv
sleep 1
echo "bazarr:
image: lscr.io/linuxserver/bazarr
container_name: bazarr
environment:
- PUID=1000
- PGID=1000
- TZ=US/Central
volumes:
- $brconfig:/config
- $brmovies:/movies
- $brtv:/tv
ports:
- 6767:6767
restart: unless-stopped" >> $bazarranswer
echo " " >> $bazarranswer
echo " "
echo "Done."
echo " "
elif [ "$fix" = n ]; then
echo " "
echo "Not adding Bazarr to any file."
source arr-installer.sh
return
else
echo " "
echo "Goodbye!"
exit 1
fi
elif [ "$yesorno" = e ]; then
echo " "
echo "Goodbye!"
exit 1
else
echo " "
echo "Not a valid answer. Exiting..."
exit 1
fi
######################################################
#Overseerr
echo "Would you like to install Overseerr? (y/n/f/e)"
read -n1 yesorno
if [ "$yesorno" = y ]; then
mkdir /home/$USER/raspi-docker/overseerr
mkdir /home/$USER/raspi-docker/overseerr/config
echo "overseerr:
image: sctx/overseerr:latest
container_name: overseerr
environment:
- LOG_LEVEL=debug
- TZ=US/Central
ports:
- 5055:5055
volumes:
- /home/$USER/raspi-docker/overseerr/config:/app/config
restart: unless-stopped" >> /home/$USER/raspi-docker/docker-compose.yml #replace /home/$USER/raspi-docker/docker-compose.yml with the location of your docker-compose.yml file
echo " " >>/home/$USER/raspi-docker/docker-compose.yml #replace this location with the location docker-compose.yml if needed.
echo " "
echo "Successfully Added"
echo " "
elif [ "$yesorno" = n ]; then
echo " "
echo "Skipping..."
elif [ "$yesorno" = f ]; then
echo " "
read -n1 -p "You have selected to change the location/volumes of the container. Would you like to continue? (y/n) " fix
if [ "$fix" = y ]; then
echo " "
read -p "Enter the location of the docker-compose.yml file: " overanswer
read -p "Enter the new location for config: " overconfig
sleep 1
echo "overseerr:
image: sctx/overseerr:latest
container_name: overseerr
environment:
- LOG_LEVEL=debug
- TZ=US/Central
ports:
- 5055:5055
volumes:
- $overconfig:/app/config
restart: unless-stopped" >> $overanswer
echo " " >> $overanswer
echo " "
echo "Done."
echo " "
elif [ "$fix" = n ]; then
echo " "
echo "Not adding Overseerr to any file."
source arr-installer.sh
return
else
echo " "
echo "Goodbye!"
exit 1
fi
elif [ "$yesorno" = e ]; then
echo " "
echo "Goodbye!"
exit 1
else
echo " "
echo "Not a valid answer. Exiting..."
exit 1
fi
######################################################
#Lidarr
echo "Would you like to install Lidarr (Music)? (y/n/f/e)"
read -n1 yesorno
if [ "$yesorno" = y ]; then
mkdir /home/$USER/raspi-docker/lidarr
mkdir /home/$USER/raspi-docker/downloads/music
mkdir /home/$USER/raspi-docker/lidarr/config
echo "lidarr:
image: lscr.io/linuxserver/lidarr
container_name: lidarr
environment:
- PUID=1000
- PGID=1000
- TZ=US/Central
volumes:
- /home/$USER/raspi-docker/lidarr/config:/config
- /home/$USER/raspi-docker/downloads/music:/music #optional
- /home/$USER/raspi-docker/downloads:/downloads #optional
ports:
- 8686:8686
restart: unless-stopped" >> /home/$USER/raspi-docker/docker-compose.yml #replace /home/$USER/raspi-docker/docker-compose.yml with the location of your docker-compose.yml file
echo " " >>/home/$USER/raspi-docker/docker-compose.yml #replace this location with the location docker-compose.yml if needed.
echo " "
echo "Successfully Added"
elif [ "$yesorno" = n ]; then
echo " "
echo "Skipping..."
elif [ "$yesorno" = f ]; then
echo " "
read -n1 -p "You have selected to change the location/volumes of the container. Would you like to continue? (y/n) " fix
if [ "$fix" = y ]; then
echo " "
read -p "Enter the location of the docker-compose.yml file: " lidarranswer
echo " "
read -p "Enter the new location for config: " lidarrconfig
read -p "Enter the new location of the Music Folder (Optional): " lrmusic
read -p "Enter the new location of the Downloads Folder (Optional): " lrdownloads
sleep 1
echo "lidarr:
image: lscr.io/linuxserver/lidarr
container_name: lidarr
environment:
- PUID=1000
- PGID=1000
- TZ=US/Central
volumes:
- $lidarrconfig:/config
- $lrmusic:/music #optional
- $lrdownloads:/downloads #optional
ports:
- 8686:8686
restart: unless-stopped" >> $lidarranswer
echo " " >> $lidarranswer
echo " "
echo "Done."
echo " "
elif [ "$fix" = n ]; then
echo " "
echo "Not adding Lidarr to any file."
source arr-installer.sh
return
else
echo " "
echo "Goodbye!"
exit 1
fi
elif [ "$yesorno" = e ]; then
echo " "
echo "Goodbye!"
exit 1
else
echo " "
echo "Not a valid answer. Exiting..."
exit 1
fi
######################################################
#Prowlarr
echo "Would you like install Prowlarr (Required for Sonarr/Radarr)? (y/n/f/e)"
read -n1 yesorno
if [ "$yesorno" = y ]; then
mkdir /home/$USER/raspi-docker/prowlarr
mkdir /home/$USER/raspi-docker/prowlarr/config
echo "prowlarr:
image: lscr.io/linuxserver/prowlarr:develop
container_name: prowlarr
environment:
- PUID=1000
- PGID=1000
- TZ=US/Central
volumes:
- /home/$USER/raspi-docker/prowlarr/config:/config
ports:
- 9696:9696
restart: unless-stopped" >> /home/$USER/raspi-docker/docker-compose.yml #replace /home/$USER/raspi-docker/docker-compose.yml with the location of your docker-compose.yml file
echo " " >> /home/$USER/raspi-docker/docker-compose.yml #replace /home/$USER/raspi-docker/docker-compose.yml with the location of your docker-compose.yml file
echo " "
echo "Successfully Added"
elif [ "$yesorno" = n ]; then
echo " "
echo "Skipping..."
elif [ "$yesorno" = f ]; then
echo " "
read -n1 -p "You have selected to change the location/volumes of the container. Would you like to continue? (y/n) " fix
if [ "$fix" = y ]; then
echo " "
read -p "Enter the location of the docker-compose.yml file: " prowlarranswer
read -p "Enter the new location for config: " prowlarrconfig
sleep 1
echo "prowlarr:
image: lscr.io/linuxserver/prowlarr:develop
container_name: prowlarr
environment:
- PUID=1000
- PGID=1000
- TZ=US/Central
volumes:
- $prowlarrconfig:/config
ports:
- 9696:9696
restart: unless-stopped" >> $prowlarranswer
echo " " >> $prowlarranswer
echo " "
echo "Done."
echo " "
elif [ "$fix" = n ]; then
echo " "
echo "Not adding Prowlarr to any file."
source arr-installer
return
else
echo " "
echo "Goodbye!"
exit 1
fi
elif [ "$yesorno" = e ]; then
echo " "
echo "Goodbye!"
exit 1
else
echo " "
echo "Not a valid answer. Exiting..."
exit 1
fi
######################################################################
#Installing Jackett
echo "Would you like to install Jackett? (y/n/f/e)"
read -n1 yesorno
if [ "$yesorno" = y ]; then
mkdir /home/$USER/raspi-docker/jackett
echo "jackett:
container_name: jackett
restart: unless-stopped
ports:
- 9117:9117
volumes:
- /home/$USER/raspi-docker/jackett:/config
environment:
- PUID=1000
- PGID=1000
- TZ=US/Central
image: linuxserver/jackett" >> /home/$USER/raspi-docker/docker-compose.yml #replace /home/$USER/raspi-docker/docker-compose.yml with the location of your docker-compose.yml file
echo " " >>/home/$USER/raspi-docker/docker-compose.yml #replace this location with the location docker-compose.yml if needed.
echo " "
echo "Successfully Added"
elif [ "$yesorno" = n ]; then
echo " "
echo "Skipping..."
elif [ "$yesorno" = f ]; then
echo " "
read -n1 -p "You have selected to change the location/volumes of the container. Would you like to continue? (y/n) " fix
if [ "$fix" = y ]; then
echo " "
read -p "Enter the location of the docker-compose.yml file: " jackettanswer
read -p "Enter the new location for config: " jackett
sleep 1
echo "jackett:
container_name: jackett
restart: unless-stopped
ports:
- 9117:9117
volumes:
- $jackett:/config
environment:
- PUID=1000
- PGID=1000
- TZ=US/Central
image: linuxserver/jackett" >> $jackettanswer
echo " " >> $jackettanswer
echo " "
echo "Done."
echo " "
elif [ "$fix" = n ]; then
echo " "
echo "Not adding Jackett to any file."
source arr-installer.sh
return
else
echo " "
echo "Goodbye!"
exit 1
fi
elif [ "$yesorno" = e ]; then
echo " "
echo "Goodbye!"
exit 1
else
echo " "
echo "Not a valid answer. Exiting..."
exit 1
fi
#############################################################
#Jellyfin
echo "Would you like install Jellyfin Media Server? (y/n/f/e)"
read -n1 yesorno
if [ "$yesorno" = y ]; then
mkdir /home/$USER/raspi-docker/jellyfin
mkdir /home/$USER/raspi-docker/jellyfin/config
echo "jellyfin:
image: lscr.io/linuxserver/jellyfin
container_name: jellyfin
environment:
- PUID=1000
- PGID=1000
- TZ=US/Central
- JELLYFIN_PublishedServerUrl=192.168.0.5 #optional
volumes:
- /home/$USER/raspi-docker/config:/config
- /home/$USER/raspi-docker/downloads/tv:/data/tvshows
- /home/$USER/raspi-docker/downloads/movies:/data/movies
ports:
- 8096:8096
- 8920:8920 #optional
- 7359:7359/udp #optional
- 1900:1900/udp #optional
restart: unless-stopped" >> /home/$USER/raspi-docker/docker-compose.yml #replace /home/$USER/raspi-docker/docker-compose.yml with the location of your docker-compose.yml file
echo " " >> /home/$USER/raspi-docker/docker-compose.yml #replace /home/$USER/raspi-docker/docker-compose.yml with the location of your docker-compose.yml file
echo " "
echo "Successfully Added"
elif [ "$yesorno" = n ]; then
echo " "
echo "Skipping..."
elif [ "$yesorno" = f ]; then
echo " "
read -n1 -p "You have selected to change the location/volumes of the container. Would you like to continue? (y/n) " fix
if [ "$fix" = y ]; then
echo " "
read -p "Enter the location of the docker-compose.yml file: " jellyanswer
read -p "Enter the new location for config: " jellyconfig
read -p "Enter the new location for TV Shows: " jellytv
read -p "Enter the new location for Movies: " jellymovies
read -p "Enter the IP of the Server URL (Default is 192.168.0.5): " jellyip
sleep 1
echo "jellyfin:
image: lscr.io/linuxserver/jellyfin
container_name: jellyfin
environment:
- PUID=1000
- PGID=1000
- TZ=US/Central
- JELLYFIN_PublishedServerUrl=$jellyip #optional
volumes:
- $jellyconfig:/config
- $jellytv:/data/tvshows
- $jellymovies:/data/movies
ports:
- 8096:8096
- 8920:8920 #optional
- 7359:7359/udp #optional
- 1900:1900/udp #optional
restart: unless-stopped" >> $jellyanswer
echo " " >> $jellyanswer
echo " "
echo "Done."
echo " "
elif [ "$fix" = n ]; then
echo " "
echo "Not adding Jellyfin Media Server to any file."
source arr-installer.sh
return
else
echo " "
echo "Goodbye!"
exit 1
fi
elif [ "$yesorno" = e ]; then
echo " "
echo "Goodbye!"
exit 1
else
echo " "
echo "Not a valid answer. Exiting..."
exit 1
fi
#############################################################################################
#Plex
echo "Would you like to install Plex Media Server? (y/n/f/e)"
read -n1 yesorno
if [ "$yesorno" = y ]; then
mkdir /home/$USER/raspi-docker/plex
mkdir /home/$USER/raspi-docker/plex/config
echo " "
read -p "Enter your Plex Claim Token: " plextoken
sudo docker run \
-d \
--name plex \
--network=host \
-e TZ="America/Chicago" \
-e PLEX_CLAIM="$plextoken" \
-v /home/$USER/raspi-docker/plex/config:/config \
-v /home/$USER/raspi-docker/downloads/movies:/movies \
-v /home/$USER/raspi-docker/downloads/tv:/tv \
plexinc/pms-docker:plexpass
elif [ "$yesorno" = n ]; then
echo " "
echo "Skipping..."
elif [ "$yesorno" = f ]; then
echo " "
read -n1 -p "You have selected to use a custom Plex Server Setup. Would you like to continue? (y/n) " fix
if [ "$fix" = y ]; then
echo " "
read -p "Enter your Plex Claim Token: " plextoken2
read -p "Enter your config location: " plexconfig
read -P "Enter the location of your Movies: " plexmovies
read -p "Enter the location of your TV Shows: " plextv
sudo docker run \
-d \
--name plex \
--network=host \
-e TZ="America/Chicago" \
-e PLEX_CLAIM="$plextoken2" \
-v $plexconfig:/config \
-v $plexmovies:/movies \
-v $plextv:/tv \
plexinc/pms-docker:plexpass
elif [ "$fix" = n ]; then
echo " "
echo "Not adding Plex."
source arr-installer.sh
return
else
echo " "
echo "Goodbye!"
exit 1
fi
elif [ "$yesorno" = e ]; then
echo " "
echo "Goodbye!"
exit 1
else
echo " "
echo "Not a valid answer. Exiting..."
exit 1
fi
##############################################################
#Emby
echo "Would you like to install Emby? (y/n/f/e)"
read -n1 yesorno
if [ "$yesorno" = y ]; then
mkdir /home/$USER/raspi-docker/emby
mkdir /home/$USER/raspi-docker/emby/config
echo "emby:
image: lscr.io/linuxserver/emby
container_name: emby
environment:
- PUID=1000
- PGID=1000
- TZ=US/Central
volumes:
- /home/$USER/raspi-docker/emby/config:/config
- /home/$USER/raspi-docker/downloads/tv:/data/tvshows
- /home/$USER/raspi-docker/downloads/movies:/data/movies
- /opt/vc/lib:/opt/vc/lib #optional
ports:
- 8096:8096
- 8920:8920 #optional
restart: unless-stopped" >> /home/$USER/raspi-docker/docker-compose.yml #replace /home/$USER/raspi-docker/docker-compose.yml with the location of your docker-compose.yml file
echo " " >>/home/$USER/raspi-docker/docker-compose.yml #replace this location with the location docker-compose.yml if needed.
echo " "
echo "Successfully Added"
echo " "
elif [ "$yesorno" = n ]; then
echo " "
echo "Skipping..."
elif [ "$yesorno" = f ]; then
echo " "
read -n1 -p "You have selected to change the location/volumes of the container. Would you like to continue? (y/n) " fix
if [ "$fix" = y ]; then
echo " "
read -p "Enter the location of the docker-compose.yml file: " embyanswer
read -p "Enter the location of config: " embyconfig
read -p "Enter the location of your TV Shows: " embytv
read -p "Enter the location of your Movies: " embymovies
sleep 1
echo "emby:
image: lscr.io/linuxserver/emby
container_name: emby
environment:
- PUID=1000
- PGID=1000
- TZ=US/Central
volumes:
- $embyconfig:/config
- $embytv:/data/tvshows
- $embymovies:/data/movies
- /opt/vc/lib:/opt/vc/lib #optional
ports:
- 8096:8096
- 8920:8920 #optional
restart: unless-stopped" >> $embyanswer
echo " " >> $embyanswer
echo " "
echo "Done."
echo " "
elif [ "$fix" = n ]; then