Skip to content

Commit

Permalink
fix DSM7 running with su command:
Browse files Browse the repository at this point in the history
  • Loading branch information
publicarray committed Feb 1, 2021
1 parent 4ae4029 commit e2b2785
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions mk/spksrc.service.start-stop-status
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,10 @@ start_daemon ()
else
SVC_CD="cd ${SVC_CWD}; "
fi
if [ -n "${SYNOPKG_DSM_VERSION_MAJOR}" ] && [ "$SYNOPKG_DSM_VERSION_MAJOR" -gt 7 ]; then
SU=""
else
if [ -n "${SYNOPKG_DSM_VERSION_MAJOR}" ] && [ "$SYNOPKG_DSM_VERSION_MAJOR" -lt 7 ]; then
SU="su ${EFF_USER} -s"
else
SU=""
fi
if [ -z "${SVC_BACKGROUND}" ]; then
$SU ${SERVICE_SHELL} -c "${SVC_CD}${SERVICE_COMMAND}" >> ${OUT} 2>&1
Expand Down

0 comments on commit e2b2785

Please sign in to comment.