forked from wouterla/docker-sickrage
-
Notifications
You must be signed in to change notification settings - Fork 0
/
start.sh
executable file
·49 lines (45 loc) · 1.38 KB
/
start.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
#! /bin/sh
mkdir -p /config
mkdir -p /config/cache
cd /sickrage
if [ -f /config/config.ini ]
then
rm -rf /sickrage/config.ini
rm -rf /sickrage/sickbeard.db
rm -rf /config/sickbeard.db.v32
rm -rf /config/sickbeard.db.v33
rm -rf /config/sickbeard.db.v34
rm -rf /config/sickbeard.db.v35
rm -rf /config/sickbeard.db.v36
rm -rf /config/sickbeard.db.v37
rm -rf /config/sickbeard.db.v38
rm -rf /config/sickbeard.db.v39
rm -rf /config/sickbeard.db.v40
rm -rf /config/sickbeard.db.v41
rm -rf /config/sickbeard.db.v42
rm -rf /config/sickbeard.db.v43
rm -rf /config/sickbeard.db.v44
else
touch /config/config.ini
touch /config/sickbeard.db
touch /config/sickbeard.db.v32
touch /config/sickbeard.db.v33
touch /config/sickbeard.db.v34
touch /config/sickbeard.db.v35
touch /config/sickbeard.db.v36
touch /config/sickbeard.db.v37
touch /config/sickbeard.db.v38
touch /config/sickbeard.db.v39
touch /config/sickbeard.db.v40
touch /config/sickbeard.db.v41
touch /config/sickbeard.db.v42
touch /config/sickbeard.db.v43
touch /config/sickbeard.db.v44
cp -fr /sickrage/cache/* /config/cache/
# mv -f /sickbeard/autoprocesstv/autoProcessTV.cfg /config/autoProcessTV.cfg
fi
ln -sf /config/config.ini /sickrage/config.ini
ln -sf /config/sickbeard.db* /sickrage/
#ln -sf /config/cache /sickrage/cache
#ln -sf /config/autoProcessTV.cfg sickbeard/autoprocesstv/autoProcessTV.cfg
/usr/bin/python SickBeard.py