Compare commits

..

2 Commits

Author SHA1 Message Date
Daniel Legt 54a9b3ec5f * Fixed Program Names 2024-01-19 01:23:46 +02:00
Daniel Legt 143a30b5f6 * Fixed discord issue 2024-01-19 01:23:20 +02:00
3 changed files with 3 additions and 3 deletions

View File

@ -4,7 +4,7 @@
# Determine the directory of the script # Determine the directory of the script
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )" SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
PROGRAM_NAME="Gitea Backup Script" PROGRAM_NAME="Vaultwarden Backup"
### [ Imports ] ### ### [ Imports ] ###
# Import Colors # Import Colors

View File

@ -4,7 +4,7 @@
# Determine the directory of the script # Determine the directory of the script
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )" SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
PROGRAM_NAME="Gitea Backup Script" PROGRAM_NAME="Gitea Backup"
### [ Imports ] ### ### [ Imports ] ###
# Import Colors # Import Colors

View File

@ -8,7 +8,7 @@ send_discord_notification() {
if [ -n "$DISCORD_WEB_HOOK" ]; then if [ -n "$DISCORD_WEB_HOOK" ]; then
curl \ curl \
-H "Content-Type: application/json" \ -H "Content-Type: application/json" \
-d "{ \"content\":\"\", \"embeds\":[{ \"title\":\"Vaultwarden Backup\", \"description\":\"${message}\", \"color\":${color}} ]}" \ -d "{ \"content\":\"\", \"embeds\":[{ \"title\":\"${PROGRAM_NAME}\", \"description\":\"${message}\", \"color\":${color}} ]}" \
$DISCORD_WEB_HOOK $DISCORD_WEB_HOOK
fi fi
} }