Skip to content

Commit cccc088

Browse files
committed
Release 4.0.23 - See CHANGELOG.md
1 parent 4579f40 commit cccc088

File tree

2 files changed

+15
-9
lines changed

2 files changed

+15
-9
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
## 4.0.23 2023-11-28 <dave at tiredofit dot ca>
2+
3+
### Changed
4+
- Resolve issue with custom notification scripts not executing
5+
6+
17
## 4.0.22 2023-11-25 <dave at tiredofit dot ca>
28

39
### Changed

install/assets/functions/10-db-backup

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1351,20 +1351,20 @@ EOF
13511351
notify() {
13521352
if var_true "${DEBUG_NOTIFY}" ; then debug on; fi
13531353
notification_custom() {
1354-
if [ -n "${NOTIFICATION_SCRIPT}" ] ; then
1355-
if var_true "${NOTIFICATION_SCRIPT_SKIP_X_VERIFY}" ; then
1356-
eval "${NOTIFICATION_SCRIPT}" "${1}" "${2}" "${3}" "${4}" "${5}"
1354+
if [ -n "${NOTIFICATION_CUSTOM_SCRIPT}" ] ; then
1355+
if var_true "${NOTIFICATION_CUSTOM_SCRIPT_SKIP_X_VERIFY}" ; then
1356+
eval "${NOTIFICATION_CUSTOM_SCRIPT}" "${1}" "${2}" "${3}" "${4}" "${5}"
13571357
else
1358-
if [ -x "${NOTIFICATION_SCRIPT}" ] ; then
1359-
write_log notice "Found NOTIFICATION_SCRIPT environment variable. Executing '${NOTIFICATION_SCRIPT}"
1358+
if [ -x "${NOTIFICATION_CUSTOM_SCRIPT}" ] ; then
1359+
write_log notice "Found NOTIFICATION_CUSTOM_SCRIPT environment variable. Executing '${NOTIFICATION_CUSTOM_SCRIPT}"
13601360
# script timestamp logfile errorcode subject body
1361-
eval "${NOTIFICATION_SCRIPT}" "${1}" "${2}" "${3}" "${4}" "${5}"
1361+
eval "${NOTIFICATION_CUSTOM_SCRIPT}" "${1}" "${2}" "${3}" "${4}" "${5}"
13621362
else
1363-
write_log error "Can't execute NOTIFICATION_SCRIPT environment variable '${NOTIFICATION_SCRIPT}' as its filesystem bit is not executible!"
1363+
write_log error "Can't execute NOTIFICATION_CUSTOM_SCRIPT environment variable '${NOTIFICATION_CUSTOM_SCRIPT}' as its filesystem bit is not executible!"
13641364
fi
13651365
fi
13661366
else
1367-
print_error "[notifications] No NOTIFICATION_SCRIPT variable set - Skipping sending Custom notifications"
1367+
print_error "[notifications] No NOTIFICATION_CUSTOM_SCRIPT variable set - Skipping sending Custom notifications"
13681368
fi
13691369
}
13701370

@@ -1466,7 +1466,7 @@ EOF
14661466
# $4 body
14671467

14681468
if var_true "${ENABLE_NOTIFICATIONS}" ; then
1469-
notification_types=$(echo "${NOTIIFICATION_TYPE}" | tr "," "\n")
1469+
notification_types=$(echo "${NOTIFICATION_TYPE}" | tr "," "\n")
14701470
for notification_type in $notification_types ; do
14711471
case "${notification_type,,}" in
14721472
"custom" )

0 commit comments

Comments
 (0)