Skip to content

Commit

Permalink
fix script
Browse files Browse the repository at this point in the history
  • Loading branch information
publicarray committed Aug 2, 2021
1 parent ccbccda commit dd9c5b7
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions spk/dotnet-runtime/src/service-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ DOTNET="${SYNOPKG_PKGDEST}/dotnet"

service_postinst ()
{
wget -O "${DOTNET_INSTALLER}" "https://dotnet.microsoft.com/download/dotnet-core/scripts/v1/dotnet-install.sh" >> ${INST_LOG} 2>&1
wget -O "${DOTNET_INSTALLER}" "https://dotnet.microsoft.com/download/dotnet-core/scripts/v1/dotnet-install.sh"

# Stop if download failed
if [ ! -r "${DOTNET_INSTALLER}" ]; then
Expand All @@ -19,9 +19,9 @@ service_postinst ()
if [ $SYNOPKG_DSM_VERSION_MAJOR -lt 7 ]; then
# Install as sc-dotnet-runtime user, for correct permissions
chmod +x "${NZBGET_INSTALLER}"
su ${EFF_USER} -s /bin/sh -c "${install_command}" >> ${INST_LOG} 2>&1
su ${EFF_USER} -s /bin/sh -c "${install_command}"
else
env HOME=${SYNOPKG_PKGHOME} /bin/sh -c "${install_command}" >> ${INST_LOG} 2>&1
env HOME=${SYNOPKG_PKGHOME} /bin/sh -c "${install_command}"
fi

if [ ! -r "${DOTNET}" ]; then
Expand Down
2 changes: 1 addition & 1 deletion spk/dotnet-sdk/Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
SPK_NAME = dotnet-sdk
SPK_VERS = 5.0.8
SPK_VERS = 5.0.302
SPK_REV = 1
SPK_ICON = src/dotnet.png

Expand Down
6 changes: 3 additions & 3 deletions spk/dotnet-sdk/src/service-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ DOTNET="${SYNOPKG_PKGDEST}/dotnet"

service_postinst ()
{
wget -O "${DOTNET_INSTALLER}" "https://dotnet.microsoft.com/download/dotnet-core/scripts/v1/dotnet-install.sh" >> ${INST_LOG} 2>&1
wget -O "${DOTNET_INSTALLER}" "https://dotnet.microsoft.com/download/dotnet-core/scripts/v1/dotnet-install.sh"

# Stop if download failed
if [ ! -r "${DOTNET_INSTALLER}" ]; then
Expand All @@ -19,9 +19,9 @@ service_postinst ()
if [ $SYNOPKG_DSM_VERSION_MAJOR -lt 7 ]; then
# Install as sc-dotnet-runtime user, for correct permissions
chmod +x "${NZBGET_INSTALLER}"
su ${EFF_USER} -s /bin/sh -c "${install_command}" >> ${INST_LOG} 2>&1
su ${EFF_USER} -s /bin/sh -c "${install_command}"
else
env HOME=${SYNOPKG_PKGHOME} /bin/sh -c "${install_command}" >> ${INST_LOG} 2>&1
env HOME=${SYNOPKG_PKGHOME} /bin/sh -c "${install_command}"
fi

if [ ! -r "${DOTNET}" ]; then
Expand Down

0 comments on commit dd9c5b7

Please sign in to comment.