-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ownCloud: Update to v10.13.2 #5912
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the only issue here with the wizards are the fact that they are using ".sh.yml" suffixes when it should only be ".yml"
Apologies for not updating the docs
Thanks for the explanation, was simple to resolve. Appreciate your PR to add this as it does greatly simplify multilingual wizards. Look forward to the updated docs. |
@mreid-tt any feedback on how to migrate to the new shared folder handling is appreciated. I didn't have time to dig into it... |
The new shared folder handling seems to work well. Tested this package with a |
@smaarn, I don't know if your PR catered for excluding the default @hgy59 I know you are a master at the framework and may have a quick solution to the above (to amend #5819). Any thoughts come to mind? |
Found an issue when migrating #5213 to new shared folders: In
But the real problem under DSM 6 is, that the shared folder cannot be created from the resource file on package update when the wizard variable with the share name is not defined. I fear that only on DSM 7, where the shared folders are (always) created by resource files, a package update without an upgrade wizard works.
I will have to investigate, whether it can be fixed by initialization of the wizard-variable or a patch of the resource file (or a wizard) is required. |
I was looking at some of the code again and I see this section: Lines 388 to 391 in ecce16f
This seems to just take the stock Then we have this section: Lines 396 to 398 in ecce16f
This seems to be the new bits that buid the wizards from templates using mustache and outputs them into Then we have this bit that seems to be putting it all together: Lines 436 to 440 in ecce16f
The last line seems to be copying the generated files in Would it make sense then that to fix this issue that we add a line right after this to look for a file named
|
14c781c
to
c235057
Compare
Revert "Attempt fix for wizard templates" This reverts commit b989dc3. Fix wizard template names
c235057
to
e0f87bb
Compare
As I wrote elsewhere it is not so easy to migrate to the new shared folder handling for DSM 6 (and the same might apply when migrating from DSM 6 to 7). #!/bin/sh
# provide an upgrade wizard if the shared folder is not already migrated to resource worker
RESOURCE_OWN="/var/packages/${SYNOPKG_PKGNAME}/conf/resource.own"
if [ -r ${RESOURCE_OWN} ]; then
if [ $(cat ${RESOURCE_OWN} | jq '."data-share".shares[0].created') == "true" ]; then
# shared folder already migrated to resource worker
exit 0;
fi
else
# shared folder not supported by resource worker (DSM 5, SRM)
exit 0;
fi
# Migration of shared folders requires wizard variable referenced by resource file
INST_ETC="/var/packages/${SYNOPKG_PKGNAME}/etc"
INST_VARIABLES="${INST_ETC}/installer-variables"
# Recreate wizard variable from SHARE_NAME or SHARE_PATH
if [ -r "${INST_VARIABLES}" ]; then
while read -r _line; do
_key=${_line%%=*}
_value=${_line#*=}
declare -g "${_key}=${_value}"
done < ${INST_VARIABLES}
fi
if [ -z "${SHARE_NAME}" ]; then
if [ -z "${SHARE_PATH}" ]; then
exit 0;
fi
declare -g SHARE_NAME=$(basename ${SHARE_PATH})
fi
cat <<EOF > $SYNOPKG_TEMP_LOGFILE
[
... the final
I didn't find any other solution yet.
Another solution would be to force the user to uninstall the package first on DSM 6 (or not to migrate to the new shared folder handling)... |
Ah, I understand now. In this case, I don't believe this will be needed for this package. Since I first modernised this package under #5619, it was migrated to shared folder handling. Additionally, based on the constraints from the original repo, it was not upgradeable from v8.1.1-7 and required the user to uninstall and re-install per this part of the wizard:
As such, I believe we are good to go with this PR. Can you give it a final review? |
👍 Yes, owncloud already had the resource worker for DSM 6 (with |
@hgy59 nice, are we good to merge? |
This reverts commit 8023b1b.
@hgy59, I've implemented a new backup and restore function which was missing before but now complete. I've also experimented with some workarounds for different journeys based on the installation type (new or restore), inspired by the MariaDB package scripts. It's a bit of a hack but works well. This should be the final version for review. |
Description
This PR contains the following:
Fixes #
Checklist
all-supported
completed successfullyType of change