Skip to content

Various unrelated fixes to kimai update script #4549

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

Merged
merged 5 commits into from
May 19, 2025

Conversation

jamezpolley
Copy link
Contributor

@jamezpolley jamezpolley commented May 17, 2025

Fixes aren't related but have been merged into #4548 as per directions from project owners, sorry.

✍️ Description

Various unrelated fixes

🔗 Related PR / Issue

Link: #4548 and #4247 and #4550

✅ Prerequisites (X in brackets)

  • Self-review completed – Code follows project standards.
  • Tested thoroughly – Changes work as expected.
  • No security risks – No hardcoded secrets, unnecessary privilege escalations, or permission issues.

🛠️ Type of Change (X in brackets)

  • 🐞 Bug fix – Resolves an issue without breaking functionality.
  • New feature – Adds new, non-breaking functionality.
  • 💥 Breaking change – Alters existing functionality in a way that may require updates.
  • 🆕 New script – A fully functional and tested script or script set.
  • 🌍 Website update – Changes to website-related JSON files or metadata.
  • 🔧 Refactoring / Code Cleanup – Improves readability or maintainability without changing functionality.
  • 📝 Documentation update – Changes to README, AppName.md, CONTRIBUTING.md, or other docs.

@jamezpolley jamezpolley requested a review from a team as a code owner May 17, 2025 03:43
@github-actions github-actions bot added bugfix update script A change that updates a script labels May 17, 2025
@jamezpolley
Copy link
Contributor Author

I can think of a few other ways to do the test, this was just the first thing I thought of. Not sure if there's a standard way to do this.

There's a proposed solution to community-scripts#4247 (which doesn't seem to have been committed - I'll fix that in a moment). I've changed the test I'm using to match that suggestion.
@jamezpolley jamezpolley mentioned this pull request May 17, 2025
2 tasks
@jamezpolley jamezpolley changed the title Ensure lsb-release is installed Various unrelated fixes to kimai update script May 17, 2025
During troubleshooting of another error, I ran into a condition where downloading the new version failed. It seems that this is because the earlier call to get the $RELEASE had failed.

This change is an attempt to catch download errors, and alert the user, and to not rm the existing install until we know the download worked.
I missed in the earlier commit that this wasn't getting reinstalled
@jamezpolley
Copy link
Contributor Author

I was finally able to get the new version of kimai working - but only after manually undoing and redoing various steps of this upgrade. In particular, the finall step (reinstall php-fpm) was done by hand after everything else had run.

So I can't say that I've tested this script as thoroughly as I would like.

Copy link
Member

@tremor021 tremor021 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@tremor021 tremor021 merged commit b7e951f into community-scripts:main May 19, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfix update script A change that updates a script
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants