Double quotes

This commit is contained in:
Bob Mottram 2016-10-01 13:12:46 +01:00
parent 5f8e95a089
commit 03faa13ade
1 changed files with 11 additions and 11 deletions

View File

@ -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