I created this script because Discord doesn't offer a repository to easily upgrade or download the application. To make this process simpler, I created this script.
-
Clone this repository.
git clone https://github.com/JoaoVictorLong/Discord-Linux
-
Grant execute permissions to the script.
chmod 740 discord.sh
-
Run the script with:
sudo ./discord.sh
The script will create a scheduled task in systemd, download Discord if it’s not installed, or update it if it’s already installed.
The script copies itself to the /usr/share/discord directory so that systemd knows where to locate it.
The script sets up a systemd service and timer to automatically run one minute after each system boot, checking for updates.
This is a simple Bash script that I initially developed in about 10 minutes. I may add new functionality in the future. Currently, the program outputs messages in Portuguese, but I plan to translate it to English soon.