Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Radarr to v3 #4276

Merged
merged 8 commits into from
Dec 13, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions cross/radarr/Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PKG_NAME = Radarr
PKG_VERS = 0.2.0.1504
PKG_VERS = 3.0.0.4204
PKG_EXT = tar.gz
PKG_DIST_NAME = $(PKG_NAME).develop.$(PKG_VERS).linux.$(PKG_EXT)
PKG_DIST_NAME = $(PKG_NAME).master.$(PKG_VERS).linux.$(PKG_EXT)
PKG_DIST_SITE = https://github.com/Radarr/Radarr/releases/download/v$(PKG_VERS)
PKG_DIR = Radarr

Expand Down
6 changes: 3 additions & 3 deletions cross/radarr/digests
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
Radarr.develop.0.2.0.1504.linux.tar.gz SHA1 0d858723f05fef73bf595e3180f9404ea472aba1
Radarr.develop.0.2.0.1504.linux.tar.gz SHA256 6b2fb3cc175ed1fbf607106990d92710eeb2fb75db66ee42dea0f59d86c5f7c0
Radarr.develop.0.2.0.1504.linux.tar.gz MD5 7c566942030f412012b83531642ea21d
Radarr.master.3.0.0.4204.linux.tar.gz SHA1 0818bd0dcbcde55292b31588144c32e934857392
Radarr.master.3.0.0.4204.linux.tar.gz SHA256 470ca22a0a561ada5ff8a7cbf15a09322a771b8edf9c8724d3cc7236342681c3
Radarr.master.3.0.0.4204.linux.tar.gz MD5 b08276e2ffa805dd8c222309adc37555
4 changes: 2 additions & 2 deletions spk/radarr/Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
SPK_NAME = radarr
SPK_VERS = $(shell date +%Y%m%d)
SPK_REV = 12
SPK_REV = 13
SPK_ICON = src/radarr.png

REQUIRED_DSM = 5.0
Expand All @@ -16,7 +16,7 @@ DESCRIPTION = Radarr is a movie manager like Couchpotato, but based on the Sona
RELOAD_UI = yes
STARTABLE = yes
DISPLAY_NAME = Radarr
CHANGELOG = "Add workaround for mono bug with armv5/88f6281"
CHANGELOG = "Update Radarr to v3.0.0.4204"

HOMEPAGE = https://radarr.video/
LICENSE = GPLv3
Expand Down
10 changes: 5 additions & 5 deletions spk/radarr/src/service-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ SPK_RADARR="${SYNOPKG_PKGINST_TEMP_DIR}/share/Radarr/Radarr.exe"
# Radarr uses custom Config and PID directories
HOME_DIR="${SYNOPKG_PKGDEST}/var"
CONFIG_DIR="${SYNOPKG_PKGDEST}/var/.config"
PID_FILE="${CONFIG_DIR}/Radarr/nzbdrone.pid"
PID_FILE="${CONFIG_DIR}/Radarr/radarr.pid"

# Some have it stored in the root of package
LEGACY_CONFIG_DIR="${SYNOPKG_PKGDEST}/.config"
Expand Down Expand Up @@ -50,10 +50,10 @@ service_preupgrade ()
# The /var/ folder gets automatically copied by service-installer after this
if [ -d "${LEGACY_CONFIG_DIR}" ]; then
echo "Moving ${LEGACY_CONFIG_DIR} to ${INST_VAR}" >> ${INST_LOG}
mv ${LEGACY_CONFIG_DIR} ${CONFIG_DIR} >> ${LOG_FILE} 2>&1
mv ${LEGACY_CONFIG_DIR} ${CONFIG_DIR} >> ${INST_LOG} 2>&1
else
# Create, in case it's missing for some reason
mkdir ${CONFIG_DIR} >> ${LOG_FILE} 2>&1
mkdir ${CONFIG_DIR} >> ${INST_LOG} 2>&1
fi

# Is Installed Radarr Binary Ver. >= SPK Radarr Binary Ver.?
Expand All @@ -77,8 +77,8 @@ service_postupgrade ()
. ${CONFIG_DIR}/KEEP_VAR
if [ "$KEEP_CUR" == "yes" ]; then
echo "Restoring Radarr version from before upgrade" >> ${INST_LOG}
rm -fr ${SYNOPKG_PKGDEST}/share >> $INST_LOG 2>&1
mv ${INST_VAR}/share ${SYNOPKG_PKGDEST}/ >> $INST_LOG 2>&1
rm -fr ${SYNOPKG_PKGDEST}/share >> ${INST_LOG} 2>&1
mv ${INST_VAR}/share ${SYNOPKG_PKGDEST}/ >> ${INST_LOG} 2>&1
set_unix_permissions "${SYNOPKG_PKGDEST}/share"
fi
set_unix_permissions "${CONFIG_DIR}"
Expand Down