Skip to content

Latest commit

 

History

4 Commits

Folders and files

Repository files navigation

Discord APT Update Notifier

Un script Bash qui vérifie les mises à jour disponibles via apt, puis envoie le résumé sur un salon Discord via un webhook.

📦 Installation

1. Copiez le script

sudo cp check-updates.sh /usr/local/bin/check-updates.sh
sudo chmod +x /usr/local/bin/check-updates.sh

2. Copiez les fichiers systemd

sudo cp systemd/check-updates.service /etc/systemd/system/
sudo cp systemd/check-updates.timer /etc/systemd/system/

3. Activez le timer

sudo systemctl daemon-reexec
sudo systemctl daemon-reload
sudo systemctl enable --now check-updates.timer

🧪 Tester manuellement

sudo systemctl start check-updates.service

📅 Planification

Le script s’exécute automatiquement tous les lundis à 18h (OnCalendar=Mon 18:00).

⚠️ Webhook Discord

Remplacez la variable WEBHOOK_URL dans check-updates.sh par votre lien Discord Webhook :

WEBHOOK_URL="https://discord.com/api/webhooks/TON_WEBHOOK_ID"

📂 Structure du dépôt

discord-apt-updates/
├── check-updates.sh
├── systemd/
│   ├── check-updates.service
│   └── check-updates.timer
└── README.md

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages