Skip to content
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

Updating tuttle overwrites configuration #12

Closed
line-o opened this issue Jul 26, 2023 · 0 comments · Fixed by #35
Closed

Updating tuttle overwrites configuration #12

line-o opened this issue Jul 26, 2023 · 0 comments · Fixed by #35
Assignees
Labels
enhancement New feature or request

Comments

@line-o
Copy link
Member

line-o commented Jul 26, 2023

As a developer I would like to keep my configuration file after an update.

@duncdrum duncdrum added the enhancement New feature or request label Jul 27, 2023
@line-o line-o self-assigned this Aug 24, 2023
line-o added a commit that referenced this issue Oct 4, 2023
fixes #12

When tuttle is updated the configuration file,
`/db/apps/tuttle/data/tuttle.xml` is backed up to
`/db/tuttle-backup/tuttle.xml`.
After the installation is finished either
- a backup is found an restored and the backup collection removed
- no old configuration was found and the example is used (copied from
  `/db/apps/tuttle/data/tuttle-example-config.xml`)
- added cleanup.xq (runs before deinstallation)
- post-install.xql was renamed to finish.xq (runs after installation)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants