Compare commits
2 Commits
c907d2040c
...
54a9b3ec5f
Author | SHA1 | Date |
---|---|---|
Daniel Legt | 54a9b3ec5f | |
Daniel Legt | 143a30b5f6 |
|
@ -4,7 +4,7 @@
|
|||
# Determine the directory of the script
|
||||
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
|
||||
|
||||
PROGRAM_NAME="Gitea Backup Script"
|
||||
PROGRAM_NAME="Vaultwarden Backup"
|
||||
|
||||
### [ Imports ] ###
|
||||
# Import Colors
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
# Determine the directory of the script
|
||||
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
|
||||
|
||||
PROGRAM_NAME="Gitea Backup Script"
|
||||
PROGRAM_NAME="Gitea Backup"
|
||||
|
||||
### [ Imports ] ###
|
||||
# Import Colors
|
||||
|
|
|
@ -8,7 +8,7 @@ send_discord_notification() {
|
|||
if [ -n "$DISCORD_WEB_HOOK" ]; then
|
||||
curl \
|
||||
-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
|
||||
fi
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue