-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathinitVolume.sh
executable file
·26 lines (26 loc) · 1.2 KB
/
initVolume.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
#!/bin/bash
cd /root
git clone https://github.com/CouchPotato/CouchPotatoServer.git &>/dev/null && patch /root/CouchPotatoServer/couchpotato/core/downloaders/qbittorrent_.py < /couchpotato.patch
git clone https://github.com/SickRage/SickRage.git &>/dev/null
cp -f /remount.sh /root/remount.sh
mkdir -p /root/acd
/root/remount.sh &>/dev/null|| { echo "ERROR : Could not mount ACD. Make sure your volume has .cache/acd/oauth_data file" ; exit 1; }
mkdir -p /root/acd/temp
mkdir -p /root/acd/Shows
mkdir -p /root/acd/Movies
mkdir -p /root/.cache/acd_cli/
mkdir -p /root/.config/qBittorrent
cp -n /qBittorrent.conf /root/.config/qBittorrent/qBittorrent.conf
mkdir -p /root/.couchpotato
cp -n /couchpotato_settings.conf /root/.couchpotato/settings.conf
cp -n /sickrage_config.ini /root/SickRage/config.ini
mkdir -p /root/downloads/completed
mkdir -p /root/downloads/incomplete
mkdir -p /root/downloads/torrents
ln -s /root/acd/temp ~/downloads/Shows &>/dev/null
ln -s /root/acd/Movies ~/downloads/Movies &>/dev/null
cp -f /move.sh /root/move.sh
cp -f /startDownloadSuite.sh /root/startDownloadSuite.sh
test -f /root/SickRage/_init || cp -f /sickrage_config.ini ~/SickRage/config.ini
touch /root/SickRage/_init
echo "Init completed"