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
|
# 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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue