Skip to content

Commit e2b2785

Browse files
committed
fix DSM7 running with su command:
SynoCommunity#4395 (comment)
1 parent 4ae4029 commit e2b2785

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

mk/spksrc.service.start-stop-status

+3-3
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,10 @@ start_daemon ()
3535
else
3636
SVC_CD="cd ${SVC_CWD}; "
3737
fi
38-
if [ -n "${SYNOPKG_DSM_VERSION_MAJOR}" ] && [ "$SYNOPKG_DSM_VERSION_MAJOR" -gt 7 ]; then
39-
SU=""
40-
else
38+
if [ -n "${SYNOPKG_DSM_VERSION_MAJOR}" ] && [ "$SYNOPKG_DSM_VERSION_MAJOR" -lt 7 ]; then
4139
SU="su ${EFF_USER} -s"
40+
else
41+
SU=""
4242
fi
4343
if [ -z "${SVC_BACKGROUND}" ]; then
4444
$SU ${SERVICE_SHELL} -c "${SVC_CD}${SERVICE_COMMAND}" >> ${OUT} 2>&1

0 commit comments

Comments
 (0)