From 4c66ac644c0796d9fd32a1486a3aa08e4d7c7a9e Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Wed, 2 Nov 2016 17:51:21 +0000 Subject: [PATCH] Remove empty lines --- src/freedombone-utils-database | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/freedombone-utils-database b/src/freedombone-utils-database index 13a7e3fd..2e6cf1e7 100755 --- a/src/freedombone-utils-database +++ b/src/freedombone-utils-database @@ -54,7 +54,6 @@ function backup_database_local { backup_databases_script=/usr/bin/backupdatabases if ! grep -q "# Backup the ${database_name} database" $backup_databases_script; then - echo '' >> $backup_databases_script echo "# Backup the ${database_name} database" >> $backup_databases_script echo "TEMPFILE=/root/${database_name}.sql" >> $backup_databases_script echo 'DAILYFILE=/var/backups/${database_name}_daily.sql' >> $backup_databases_script @@ -85,7 +84,6 @@ function backup_database_local { weekly_backup_script=/etc/cron.weekly/backupdatabasesweekly if ! grep -q "Backup ${database_name}" ${weekly_backup_script}; then - echo '' >> ${weekly_backup_script} echo "# Backup ${database_name}" >> ${weekly_backup_script} echo "if [ -f /var/backups/${database_name}_weekly.sql ]; then" >> ${weekly_backup_script} echo " cp -f /var/backups/${database_name}_weekly.sql /var/backups/${database_name}_2weekly.sql" >> ${weekly_backup_script} @@ -98,7 +96,6 @@ function backup_database_local { monthly_backup_script=/etc/cron.monthly/backupdatabasesmonthly if ! grep -q "Backup ${database_name}" ${monthly_backup_script}; then - echo '' >> ${monthly_backup_script} echo "# Backup ${database_name}" >> ${monthly_backup_script} echo "if [ -f /var/backups/${database_name}_monthly.sql ]; then" >> ${monthly_backup_script} echo " cp -f /var/backups/${database_name}_monthly.sql /var/backups/${database_name}_2monthly.sql" >> ${monthly_backup_script}