Double quotes
This commit is contained in:
parent
5f8e95a089
commit
03faa13ade
|
@ -33,19 +33,19 @@
|
||||||
WATCHDOG_SCRIPT_NAME="keepon"
|
WATCHDOG_SCRIPT_NAME="keepon"
|
||||||
|
|
||||||
function install_watchdog_script {
|
function install_watchdog_script {
|
||||||
if grep -Fxq "install_watchdog_script" $COMPLETION_FILE; then
|
if grep -Fxq "install_watchdog_script" $COMPLETION_FILE; then
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
echo '#!/bin/bash' > /usr/bin/$WATCHDOG_SCRIPT_NAME
|
echo '#!/bin/bash' > /usr/bin/$WATCHDOG_SCRIPT_NAME
|
||||||
echo 'LOGFILE=/var/log/keepon.log' >> /usr/bin/$WATCHDOG_SCRIPT_NAME
|
echo 'LOGFILE=/var/log/keepon.log' >> /usr/bin/$WATCHDOG_SCRIPT_NAME
|
||||||
echo 'CURRENT_DATE=$(date)' >> /usr/bin/$WATCHDOG_SCRIPT_NAME
|
echo 'CURRENT_DATE=$(date)' >> /usr/bin/$WATCHDOG_SCRIPT_NAME
|
||||||
# application specific stuff is added later
|
# application specific stuff is added later
|
||||||
chmod +x /usr/bin/$WATCHDOG_SCRIPT_NAME
|
chmod +x /usr/bin/$WATCHDOG_SCRIPT_NAME
|
||||||
|
|
||||||
function_check cron_add_mins
|
function_check cron_add_mins
|
||||||
cron_add_mins 1 '/usr/bin/$WATCHDOG_SCRIPT_NAME'
|
cron_add_mins 1 "/usr/bin/$WATCHDOG_SCRIPT_NAME"
|
||||||
|
|
||||||
echo 'install_watchdog_script' >> $COMPLETION_FILE
|
echo 'install_watchdog_script' >> $COMPLETION_FILE
|
||||||
}
|
}
|
||||||
|
|
||||||
# NOTE: deliberately no exit 0
|
# NOTE: deliberately no exit 0
|
||||||
|
|
Loading…
Reference in New Issue