kimai / kimai

Kimai is a web-based multi-user time-tracking application. Works great for everyone: freelancers, companies, organizations - everyone can track their times, generate reports, create invoices and do so much more. SaaS version available at https://www.kimai.cloud
https://www.kimai.org
GNU Affero General Public License v3.0
3.11k stars 543 forks source link

Auto-Updater for Kimai #4786

Closed derStephan closed 4 months ago

derStephan commented 4 months ago

Describe the problem

Hi,

I wrote a small bash script to perform auto updates.

#! /bin/bash

#Change into your Kimai directory
cd /var/www/kimai

# Get new tags from remote
git fetch --tags

# Get latest tag name
latestTag=$(git describe --tags "$(git rev-list --tags --max-count=1)")

# Checkout latest tag
git checkout $latestTag

#Update all composer dependencies
composer install --optimize-autoloader -n

#run the Kimai updater
php bin/console kimai:update

#Adjust file permission
chown -R :www-data .
chmod -R g+r .
chmod -R g+rw var/

I run it from crontab once a week.

Describe the solution you'd like

Add something similar to kimai's sources or add some point & click updater directly to kimai

Describe alternatives you've considered

manually updating according to https://www.kimai.org/documentation/updates.html

Screenshots

No response

kevinpapst commented 4 months ago

We can add that to the documentation, but I will not work on an auto-updater or include something like it in the core package.

Do you want to propose a PR to the docs? https://github.com/kimai/www.kimai.org/edit/main/_documentation/updates.md

github-actions[bot] commented 1 month ago

This thread has been automatically locked since there has not been any recent activity after it was closed. Please share your experience with the community and leave a testimonial to support Kimai.