Skip to content

Commit b85b08e

Browse files
committed
* Remove python3.6 from dependancies in debain control, to allow local python3.6+ installs to be utilized. Fixes #22
* Include .git folder with previoud 10 commits, to allow the updater to work. Fixes #24 * Check for python3.6+ versions in system path, and update the service file to the latest found. call 'dpkg-reconfigure sickchill' if it changes to update the service * Fix error in service where ExecStart path was not absolute. Fixes #25 * No longer copy config from /apps/sickrage automatically, this could cause a data overwrite if users used the other repo. Signed-off-by: miigotu <miigotu@gmail.com>
1 parent 5bba6f2 commit b85b08e

File tree

6 files changed

+24
-10
lines changed

6 files changed

+24
-10
lines changed

build_python.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ apt-get install libreadline-gplv2-dev libncursesw5-dev libssl-dev libsqlite3-dev
1414

1515
wget http://python.org/ftp/python/3.6.9\/Python-3.6.9.tar.xz
1616
tar xf Python-3.6.9.tar.xz
17-
cd Python-3.6.9
17+
cd Python-3.6.9 || exit 1
1818
./configure --enable-optimizations --with-ensurepip=install
1919
make -j8
20-
make altinstall
20+
make checkinstall altinstall

debian/changelog

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
sickchill (2021.03.09) UNRELEASED; urgency=medium
2+
3+
* Remove python3.6 from dependancies in debain control, to allow local python3.6+ installs to be utilized. Fixes #22
4+
* Include .git folder with previoud 10 commits, to allow the updater to work. Fixes #24
5+
* Check for python3.6+ versions in system path, and update the service file to the latest found. call 'dpkg-reconfigure sickchill' if it changes to update the service
6+
* Fix error in service where ExecStart path was not absolute. Fixes #25
7+
* No longer copy config from /apps/sickrage automatically, this could cause a data overwrite if users used the other repo.
8+
9+
-- miigotu <miigotu@gmail.com> Tue, 09 Mar 2021 23:21:15 -0500
10+
111
sickchill (2021.02.24) stable; urgency=medium
212

313
* Upstream Update

debian/control

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Depends: ${shlibs:Depends},
1414
${misc:Depends},
1515
readynasos (>= 6.1.0),
1616
php5-sqlite,
17-
python3 (>= 3.6),
17+
sed,
1818
git
1919
Description: Searches torrent and nzb providers for shows.
2020
Manage your whole workflow and get episodes as soon as they are available.

debian/postinst

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,11 @@ set -e
2121
case "$1" in
2222
configure)
2323
chown -R admin:admin /apps/sickchill
24-
if [ -d "/apps/sickrage/app-config/" ] && [ ! -f /apps/sickchill/app-config/config.ini ]; then
25-
cp -r /apps/sickrage/app-config/* /apps/sickchill/app-config/
26-
fi
24+
SC_PYTHON=$(command -v python3.9 || command -v python3.8 || command -v python3.7 || command -v python3.6)
25+
[ -z $SC_PYTHON ] && (echo "Python 3.6+ not found in your path. After fixing this issue, call 'dpkg-reconfigure sickchill'" && exit 1)
26+
echo "Found python3 at $SC_PYTHON, setting service to use this interpreter"
27+
echo "If you change python versions or path, call 'dpkg-reconfigure sickchill' to fix the service"
28+
sed -i "s#ExecStart=.* /apps/sickchill/SickChill.py#ExecStart=$SC_PYTHON /apps/sickchill/SickChill.py#g" /apps/sickchill/fvapp-sickchill.service
2729
;;
2830
abort-upgrade|abort-remove|abort-deconfigure)
2931
;;

debian/rules

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@
88

99
# Uncomment this to turn on verbose mode.
1010
#export DH_VERBOSE=1
11-
export DH_ALWAYS_EXCLUDE=.git
11+
12+
# We need the .git folder for git based updates.
13+
#export DH_ALWAYS_EXCLUDE=.git
1214

1315

1416
DESTDIR = $(CURDIR)/debian/sickchill
@@ -19,6 +21,6 @@ DESTDIR = $(CURDIR)/debian/sickchill
1921
override_dh_install:
2022
cp -R $(CURDIR)/rn-files/* ${DESTDIR}/apps/sickchill
2123
mkdir -p $(CURDIR)/git-files
22-
if [ -d ./git-files/sickchill ]; then git --git-dir=./git-files/.git pull; fi
23-
if [ ! -d ./git-files/sickchill ]; then git clone https://github.com/sickchill/sickchill.git ./git-files; fi
24+
if [ -d ./git-files/sickchill ]; then git --git-dir=./git-files/.git --depth 10 pull; fi
25+
if [ ! -d ./git-files/sickchill ]; then git clone --depth 10 https://github.com/sickchill/sickchill.git ./git-files; fi
2426
cp -R $(CURDIR)/git-files/* ${DESTDIR}/apps/sickchill

rn-files/fvapp-sickchill.service

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
Description=Service for sickchill app
33

44
[Service]
5-
ExecStart=$(command -v python3.9 || command -v python3.8 || command -v python3.7 || command -v python3.6) /apps/sickchill/SickChill.py --nolaunch --datadir=/apps/sickchill/app-config --config=/apps/sickchill/app-config/config.ini --port=6766
5+
ExecStart=python3 /apps/sickchill/SickChill.py --nolaunch --datadir=/apps/sickchill/app-config --config=/apps/sickchill/app-config/config.ini --port=6766
66
Restart=always
77
Nice=18
88
User=admin

0 commit comments

Comments
 (0)