Skip to content

Commit

Permalink
Selfoss: Fix bug in wizard scripts (#5954)
Browse files Browse the repository at this point in the history
* Fix wizard logic
* Version bump
  • Loading branch information
mreid-tt authored Dec 9, 2023
1 parent af94cfc commit 7d6234d
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 13 deletions.
2 changes: 1 addition & 1 deletion spk/selfoss/Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
SPK_NAME = selfoss
SPK_VERS = 2.19
SPK_REV = 7
SPK_REV = 8
SPK_ICON = src/selfoss.png

DEPENDS = cross/selfoss
Expand Down
11 changes: 5 additions & 6 deletions spk/selfoss/src/wizard/install_uifile.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,11 @@ page_append ()
check_php_profiles ()
{
PHP_CFG_PATH="/usr/syno/etc/packages/WebStation/PHPSettings.json"
if [ "${SYNOPKG_DSM_VERSION_MAJOR}" -lt 7 ]; then
if jq -e 'to_entries | map(select((.key | startswith("com-synocommunity-packages-")) and .key != "com-synocommunity-packages-selfoss")) | length > 0' "${PHP_CFG_PATH}" >/dev/null; then
return 0 # true
else
return 1 # false
fi
if [ "${SYNOPKG_DSM_VERSION_MAJOR}" -lt 7 ] && \
jq -e 'to_entries | map(select((.key | startswith("com-synocommunity-packages-")) and .key != "com-synocommunity-packages-selfoss")) | length > 0' "${PHP_CFG_PATH}" >/dev/null; then
return 0 # true
else
return 1 # false
fi
}

Expand Down
11 changes: 5 additions & 6 deletions spk/selfoss/src/wizard/install_uifile_fre.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,11 @@ page_append ()
check_php_profiles ()
{
PHP_CFG_PATH="/usr/syno/etc/packages/WebStation/PHPSettings.json"
if [ "${SYNOPKG_DSM_VERSION_MAJOR}" -lt 7 ]; then
if jq -e 'to_entries | map(select((.key | startswith("com-synocommunity-packages-")) and .key != "com-synocommunity-packages-selfoss")) | length > 0' "${PHP_CFG_PATH}" >/dev/null; then
return 0 # true
else
return 1 # false
fi
if [ "${SYNOPKG_DSM_VERSION_MAJOR}" -lt 7 ] && \
jq -e 'to_entries | map(select((.key | startswith("com-synocommunity-packages-")) and .key != "com-synocommunity-packages-selfoss")) | length > 0' "${PHP_CFG_PATH}" >/dev/null; then
return 0 # true
else
return 1 # false
fi
}

Expand Down

0 comments on commit 7d6234d

Please sign in to comment.