rename vars
This commit is contained in:
parent
a555aadc33
commit
c389d6a141
13
report
13
report
|
@ -1,9 +1,5 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
PATH=/usr/sbin:/usr/bin:/sbin:/bin
|
|
||||||
|
|
||||||
export _SCRIPT_NAME="$(realpath "$0")"
|
|
||||||
export _SCRIPT_PATH="$(dirname "$_SCRIPT_NAME")"
|
|
||||||
|
|
||||||
# export EMAIL_RECIPIENT=you@example.com
|
# export EMAIL_RECIPIENT=you@example.com
|
||||||
# export EMAIL_SENDER=system@example.com
|
# export EMAIL_SENDER=system@example.com
|
||||||
|
@ -13,11 +9,16 @@ export _SCRIPT_PATH="$(dirname "$_SCRIPT_NAME")"
|
||||||
# export MUNIN_DIRECTORY=/var/cache/munin/www/localhost/localhost
|
# export MUNIN_DIRECTORY=/var/cache/munin/www/localhost/localhost
|
||||||
# export SMART_DEVICES="/dev/sda /dev/sdb /dev/sdc"
|
# export SMART_DEVICES="/dev/sda /dev/sdb /dev/sdc"
|
||||||
|
|
||||||
|
export PATH=/usr/sbin:/usr/bin:/sbin:/bin
|
||||||
|
|
||||||
|
export SCRIPT_NAME="$(realpath "$0")"
|
||||||
|
export SCRIPT_PATH="$(dirname "$SCRIPT_NAME")"
|
||||||
|
|
||||||
if [ -z "$TEMPLATE" ]; then
|
if [ -z "$TEMPLATE" ]; then
|
||||||
export TEMPLATE="$_SCRIPT_PATH/templates/deblan"
|
export TEMPLATE="$SCRIPT_PATH/templates/deblan"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
cd "$_SCRIPT_PATH"
|
cd "$SCRIPT_PATH"
|
||||||
|
|
||||||
./hooks/on-start
|
./hooks/on-start
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue