Commit 1bc3d97 1 parent e62d5b4 commit 1bc3d97 Copy full SHA for 1bc3d97
File tree 4 files changed +26
-7
lines changed
4 files changed +26
-7
lines changed Original file line number Diff line number Diff line change 5
5
service_prestart ()
6
6
{
7
7
# Replace generic service startup
8
-
9
8
MONO_PATH=" ${SYNOPKG_PKGDEST} /../mono/bin"
10
9
PATH=" ${SYNOPKG_PKGDEST} /bin:${MONO_PATH} :${PATH} "
11
10
MONO=" ${MONO_PATH} /mono"
12
11
JACKETT=" ${SYNOPKG_PKGDEST} /share/${SYNOPKG_PKGNAME} /JackettConsole.exe"
13
12
HOME_DIR=" ${SYNOPKG_PKGDEST} /var"
14
13
14
+ # workaround for mono bug with armv5 (https://github.com/mono/mono/issues/12537)
15
+ if [ " $SYNOPKG_DSM_ARCH " == " 88f8621" -o " $SYNOPKG_DSM_ARCH " == " 88f8622" ]; then
16
+ MONO=" MONO_ENV_OPTIONS='-O=-aot,-float32' ${MONO_PATH} /mono"
17
+ fi
18
+
15
19
echo " Starting Jackett as user ${EFF_USER} " >> ${LOG_FILE}
16
20
COMMAND=" env HOME=${HOME_DIR} PATH=${PATH} LD_LIBRARY_PATH=${SYNOPKG_PKGDEST} /lib ${MONO} ${JACKETT} --PIDFile ${PID_FILE} "
17
21
@@ -30,5 +34,5 @@ service_postinst ()
30
34
$BIN /delgroup " ${USER} " " users" >> ${INST_LOG}
31
35
$BIN /deluser " ${USER} " >> ${INST_LOG}
32
36
33
- echo " service_postinst ${SYNOPKG_PKG_STATUS} " >> $INST_LOG
37
+ echo " service_postinst ${SYNOPKG_PKG_STATUS} " >> ${ INST_LOG}
34
38
}
Original file line number Diff line number Diff line change 1
1
PATH=" ${SYNOPKG_PKGDEST} /bin:${PATH} "
2
- MONO_PATH=" /usr/local /mono/bin"
2
+ MONO_PATH=" ${SYNOPKG_PKGDEST} /.. /mono/bin"
3
3
MONO=" ${MONO_PATH} /mono"
4
4
5
5
# Check versions during upgrade
@@ -14,6 +14,11 @@ PID_FILE="${CONFIG_DIR}/Lidarr/lidarr.pid"
14
14
# Some have it stored in the root of package
15
15
LEGACY_CONFIG_DIR=" ${SYNOPKG_PKGDEST} /.config"
16
16
17
+ # workaround for mono bug with armv5 (https://github.com/mono/mono/issues/12537)
18
+ if [ " $SYNOPKG_DSM_ARCH " == " 88f8621" -o " $SYNOPKG_DSM_ARCH " == " 88f8622" ]; then
19
+ MONO=" MONO_ENV_OPTIONS='-O=-aot,-float32' ${MONO_PATH} /mono"
20
+ fi
21
+
17
22
GROUP=" sc-download"
18
23
19
24
SERVICE_COMMAND=" env PATH=${MONO_PATH} :${PATH} HOME=${HOME_DIR} LD_LIBRARY_PATH=${SYNOPKG_PKGDEST} /lib ${MONO} ${LIDARR} "
@@ -46,7 +51,7 @@ service_preupgrade ()
46
51
47
52
service_postupgrade ()
48
53
{
49
- # Restore Current Lidarr Binary If Current Ver. >= SPK Ver.
54
+ # Restore Current Lidarr Binary if Current Ver. >= SPK Ver.
50
55
. ${CONFIG_DIR} /KEEP_VAR
51
56
if [ " $KEEP_CUR " == " yes" ]; then
52
57
echo " Restoring Lidarr version from before upgrade" >> ${INST_LOG}
Original file line number Diff line number Diff line change 1
1
PATH=" ${SYNOPKG_PKGDEST} /bin:${PATH} "
2
- MONO_PATH=" /usr/local /mono/bin"
2
+ MONO_PATH=" ${SYNOPKG_PKGDEST} /.. /mono/bin"
3
3
MONO=" ${MONO_PATH} /mono"
4
4
5
5
# Check versions during upgrade
@@ -14,6 +14,11 @@ PID_FILE="${CONFIG_DIR}/Radarr/nzbdrone.pid"
14
14
# Some have it stored in the root of package
15
15
LEGACY_CONFIG_DIR=" ${SYNOPKG_PKGDEST} /.config"
16
16
17
+ # workaround for mono bug with armv5 (https://github.com/mono/mono/issues/12537)
18
+ if [ " $SYNOPKG_DSM_ARCH " == " 88f8621" -o " $SYNOPKG_DSM_ARCH " == " 88f8622" ]; then
19
+ MONO=" MONO_ENV_OPTIONS='-O=-aot,-float32' ${MONO_PATH} /mono"
20
+ fi
21
+
17
22
GROUP=" sc-download"
18
23
LEGACY_GROUP=" sc-media"
19
24
@@ -68,7 +73,7 @@ service_preupgrade ()
68
73
69
74
service_postupgrade ()
70
75
{
71
- # Restore Current Radarr Binary If Current Ver. >= SPK Ver.
76
+ # Restore Current Radarr Binary if Current Ver. >= SPK Ver.
72
77
. ${CONFIG_DIR} /KEEP_VAR
73
78
if [ " $KEEP_CUR " == " yes" ]; then
74
79
echo " Restoring Radarr version from before upgrade" >> ${INST_LOG}
Original file line number Diff line number Diff line change 1
1
PATH=" ${SYNOPKG_PKGDEST} /bin:${PATH} "
2
- MONO_PATH=" /usr/local /mono/bin"
2
+ MONO_PATH=" ${SYNOPKG_PKGDEST} /.. /mono/bin"
3
3
MONO=" ${MONO_PATH} /mono"
4
4
5
5
# Sonarr uses the home directory to store it's ".config"
29
29
# Some have it stored in the root of package
30
30
LEGACY_CONFIG_DIR=" ${SYNOPKG_PKGDEST} /.config"
31
31
32
+ # workaround for mono bug with armv5 (https://github.com/mono/mono/issues/12537)
33
+ if [ " $SYNOPKG_DSM_ARCH " == " 88f8621" -o " $SYNOPKG_DSM_ARCH " == " 88f8622" ]; then
34
+ MONO=" MONO_ENV_OPTIONS='-O=-aot,-float32' ${MONO_PATH} /mono"
35
+ fi
36
+
32
37
GROUP=" sc-download"
33
38
LEGACY_GROUP=" sc-media"
34
39
You can’t perform that action at this time.
0 commit comments