discord.sh now displays to console as well by default, and a lot of cleanup
This commit is contained in:
+10
-16
@@ -1,35 +1,29 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# used by crons/thermal-*
|
||||
# degrees in Celsius which we regard as too high
|
||||
THERMAL_ALERT=70
|
||||
|
||||
# used by crons/storage-*
|
||||
STORAGE_MONITOR=("/")
|
||||
|
||||
# used by crons/storage-alert.sh
|
||||
# must declare associated array explicitly
|
||||
declare -A STORAGE_ALERT
|
||||
# storage in GiB
|
||||
STORAGE_ALERT=(["/"]=5)
|
||||
|
||||
BACKUP_DIRECTORY="/home/ubuntu/data"
|
||||
|
||||
# the directory with backups to cleanup
|
||||
PRUNE_DIRECTORY="/home/ubuntu/data"
|
||||
|
||||
# what type of backups to cleanup (what to find) "*.zip" etc, or "<DIR>"
|
||||
PRUNE_TYPE="<DIR>"
|
||||
|
||||
# when set to 0, all backups are kept
|
||||
PRUNE_DOWN_TO=0
|
||||
|
||||
SERVER_DOMAIN="localhost"
|
||||
# used by cloudflare.sh, discord.sh
|
||||
SERVER_DOMAIN=$(cat /etc/hostname)
|
||||
|
||||
# used by cloudflare.sh
|
||||
# default is to only update dns records which have the comment "managed by <SERVER-HOSTNAME>"
|
||||
CLOUDFLARE_TOKEN="<API_TOKEN DNS:Read, DNS:Edit>"
|
||||
CLOUDFLARE_ZONE="<ZONE_ID>"
|
||||
CLOUDFLARE_FILTER_PREFIX="comment.contains=managed+by+$SERVER_DOMAIN&"
|
||||
|
||||
DISCORD_SERVER_NAME="<YOUR_SERVER>"
|
||||
|
||||
DISCORD_TITLE_SUFFIX="$DISCORD_SERVER_NAME"
|
||||
|
||||
# used by discord.sh
|
||||
DISCORD_SERVER_NAME="$SERVER_DOMAIN"
|
||||
DISCORD_TITLE_SUFFIX="· $DISCORD_SERVER_NAME"
|
||||
DISCORD_GENERAL_HOOK="<WEBHOOK_URL_HERE>?wait=true"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user