mirror of
https://github.com/a-stoyanov/zabbix-domain-expiry.git
synced 2025-12-12 17:32:31 +00:00
Add bash shebang
This commit is contained in:
parent
89565547df
commit
59dfe68308
1 changed files with 2 additions and 2 deletions
|
|
@ -1,3 +1,4 @@
|
||||||
|
#!/bin/bash
|
||||||
# check_domain - v2.0.0
|
# check_domain - v2.0.0
|
||||||
# Author: A. Stoyanov
|
# Author: A. Stoyanov
|
||||||
# GitHub: https://github.com/a-stoyanov/zabbix-domain-expiry
|
# GitHub: https://github.com/a-stoyanov/zabbix-domain-expiry
|
||||||
|
|
@ -47,7 +48,6 @@
|
||||||
# - Debug output is enabled with -z and sent to stderr.
|
# - Debug output is enabled with -z and sent to stderr.
|
||||||
# - Temporary files are cleaned up on exit.
|
# - Temporary files are cleaned up on exit.
|
||||||
|
|
||||||
#!/bin/sh
|
|
||||||
set -e
|
set -e
|
||||||
exec 2>&1
|
exec 2>&1
|
||||||
|
|
||||||
|
|
@ -1005,4 +1005,4 @@ if [ $expdays -ge 0 ]; then
|
||||||
fi
|
fi
|
||||||
die "$STATE_CRITICAL" "State: CRITICAL ; Days since expired: ${expdays#-} ; Expire date: $expdate"
|
die "$STATE_CRITICAL" "State: CRITICAL ; Days since expired: ${expdays#-} ; Expire date: $expdate"
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue