forked from needo37/couchpotato
-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.sh
executable file
·47 lines (35 loc) · 1.52 KB
/
install.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
#!/bin/bash
#########################################
## ENVIRONMENTAL CONFIG ##
#########################################
# Configure user nobody to match unRAID's settings
usermod -u 99 nobody
usermod -g 100 nobody
usermod -d /home nobody
chown -R nobody:users /home
# Disable SSH
rm -rf /etc/service/sshd /etc/my_init.d/00_regen_ssh_host_keys.sh
#########################################
## REPOSITORIES AND DEPENDENCIES ##
#########################################
# Repositories
add-apt-repository "deb http://us.archive.ubuntu.com/ubuntu/ trusty universe multiverse"
add-apt-repository "deb http://us.archive.ubuntu.com/ubuntu/ trusty-updates universe multiverse"
# Install Dependencies
apt-get update -qq
apt-get install -qy python wget unrar git python-lxml
#########################################
## INSTALLATION ##
#########################################
# Install Couchpotato
mkdir -p /opt/couchpotato
#git clone http://gitlab.com/sarakha63/CouchPotatoServer.git /opt/couchpotato
#lebon git clone http://github.com/sarakha63/persomov.git /opt/couchpotato
git clone http://github.com/tocks53/CouchPotatoServer.git /opt/couchpotato
#wget -qO - https://github.com/RuudBurger/CouchPotatoServer/archive/build/2.6.1.tar.gz | tar -C /opt/couchpotato -zx --strip-components 1
#########################################
## CLEANUP ##
#########################################
# Clean APT install files
apt-get clean -y
rm -rf /var/lib/apt/lists/* /var/cache/* /var/tmp/*