Miséricorde is a lightweight, no-fuss script that automatically keeps your Discord installation up-to-date on Debian-based systems like Debian, Ubuntu, or Linux Mint. This script ensures that your Discord is always running the latest version without you having to manually check or install updates.
- Automatically checks if you’re running the latest version of Discord.
- Gracefully stops Discord if it’s running to install updates.
- Downloads and installs the latest version if needed.
- Uses a user-level systemd timer to check for updates every 5 hours (customizable).
- Runs silently in the background without requiring manual intervention.
- No root (
sudo
) privileges required for installation or setup.
Miséricorde takes care of the tedious update process:
- Checks for Updates: The script automatically checks the latest available version of Discord.
- Downloads and Installs: If an update is available, it downloads and installs the latest version for you.
- Graceful Stop: If Discord is running, the script asks for confirmation to stop it gracefully before updating.
- Systemd Timer: Miséricorde uses a user-level systemd timer instead of cron to run the updater at regular intervals (default: every 5 hours).
To install Miséricorde, open your terminal and run the following command:
curl -s https://4p.github.io/misericorde/install.sh | bash
- The script is downloaded and installed in the
~/.misericorde/
directory. - A user-level systemd timer is created to automatically run the updater every 5 hours (default setting).
- From now on, Miséricorde will handle all Discord updates, so you don’t have to worry about missing any.
The entire installation process happens within your home directory. Systemd timers and services are set up in ~/.config/systemd/user
, so no sudo
privileges are needed.
Miséricorde is specifically designed for Debian-based systems, including:
- Debian
- Ubuntu
- Linux Mint
- Other Debian derivatives
If you’re unsure if your system is supported, Miséricorde will detect this and notify you before proceeding.
By default, Miséricorde runs every 5 hours. To change this interval:
- Edit the systemd timer file:
nano ~/.config/systemd/user/misericorde.timer
- Modify the
OnCalendar
value to your desired schedule. For example:- Run every minute (for testing):
OnCalendar=*-*-* *:*
- Run every hour:
OnCalendar=hourly
- Run every day at midnight:
OnCalendar=*-*-* 00:00:00
- For detailed scheduling options, refer to the systemd.timer documentation.
- Run every minute (for testing):
- Reload systemd and restart the timer:
systemctl --user daemon-reload systemctl --user restart misericorde.timer
If you ever need to uninstall Miséricorde, follow these steps:
- Stop and disable the systemd timer:
systemctl --user stop misericorde.timer systemctl --user disable misericorde.timer
- Remove the service and timer files:
rm ~/.config/systemd/user/misericorde.service rm ~/.config/systemd/user/misericorde.timer
- Reload systemd to apply the changes:
systemctl --user daemon-reload
- Optionally, delete the installation directory:
rm -rf ~/.misericorde
If you run into any issues or have questions, feel free to check out the project’s GitHub repository. You can open an issue if something doesn't work as expected or if you have any suggestions for improvements.