fix : script check storage #2

Merged
Matteo merged 12 commits from feat/372-script-check-stockage into main 2026-03-06 07:55:35 +00:00
3 changed files with 12 additions and 2 deletions
Showing only changes of commit 624658e3af - Show all commits
+1 -1
View File
@@ -1 +1 @@
WEBHOOK_URL="https://discord.com/api/webhooks/123456789012345678/abcdefghijklmnopqrstuvwxyz" WEBHOOK_URL=""
+9
View File
@@ -0,0 +1,9 @@
# Secrets / environment
.env
.env.*
!.env.example
!.env.exemple
# IDE / editor
.idea/
.vscode/
+2 -1
View File
@@ -1,6 +1,7 @@
#!/bin/bash #!/bin/bash
limit=1 limit=1
WEBHOOK_URL="https://discord.com/api/webhooks/1479061246903845048/oInyHOf1l7t-jbu9c1lvQDBUxT7m96sUpoDak-V_wjR4IRFi2zz9prC20IKq6cLHF8FO" # Mettre le lien de votre webhook Discord dans un .env
WEBHOOK_URL=$(grep -E '^WEBHOOK_URL=' .env | cut -d '=' -f2-)
usage=$(df -h / | awk 'NR==2 {gsub(/%/,"",$5); print $5}') usage=$(df -h / | awk 'NR==2 {gsub(/%/,"",$5); print $5}')
free=$((100 - usage)) free=$((100 - usage))