Best way to receive notifications for updates?

What would be the best way to receive notifications for new updates? Email alerts would be ideal, I prefer to do manual updates so auto-update isn’t an option for me.

Thank You.

We usually send an email to all registered users when deploying the latest version to invoiceninja.com.

This might do the trick.

ninja_home="</path/to/ninja>"
ninja_storage="$ninja_home/storage"
versiontxt="$ninja_storage/version.txt"

ninja_installed=$(cat "$versiontxt")
ninja_current=$((wget -qO- https://invoiceninja.org/index.php) | (grep -oP 'Download Version \K[0-9]+\.[0-9]+(\.[0-9]+)'))
 
 
update_required="no"
set -f
array_ninja_installed=(${ninja_installed//./ })
array_ninja_current=(${ninja_current//./ })
 
if (( ${#array_ninja_installed[@]} == "2" ))
then
    array_ninja_installed+=("0")
fi
 
for ((i=0; i<${#array_ninja_installed[@]}; i++))
do
    if (( ${array_ninja_installed[$i]} < ${array_ninja_current[$i]} ))
    then
    update_required="yes"
    fi
done
 
 case $update_required in
    no)
	
    ;;
    yes)
	echo "Invoice Ninja v$ninja_current is available." | sudo ssmtp <your_email@your_domain.tld>
    ;;
esac

You can stick that in the root crontab with whatever schedule you prefer. All it does is call ssmtp if the current version is newer (so make sure you have ssmtp installed and configured). Doesn’t make any changes to your system, however. It should work, but I’m about five minutes from crashing for now, so no promises.

That’s awesome :slight_smile:

Another option may be ifttt.com

https://www.reddit.com/r/3dshacks/comments/4bg436/tutorial_get_email_notifications_for_new_releases/

I’ve just setup an atom feed in Outlook 2016 for https://github.com/invoiceninja/invoiceninja/releases. If you check the source of that page - the URL to add is https://github.com/invoiceninja/invoiceninja/releases.atom

Would be nice if github had a ‘watch page’ option however!

Regards

Looks like we’ve got an option for every preference covered. :slight_smile:

What a fantastic list! I really like the crontab choice, fits perfectly into my current solution. With that said the outlook RSS feed was something I didn’t even think about! I keep outlook open constantly anyway so this works for me and is super duper easy…

Thanks guys.