Browse Source

messages and echos

pull/1144/head
UltimateByte 9 years ago
committed by GitHub
parent
commit
8d1167c596
  1. 3
      lgsm/functions/command_backup.sh

3
lgsm/functions/command_backup.sh

@ -36,14 +36,12 @@ fn_backup_init(){
fn_print_info_nl "A total of ${rootdirduexbackup} will be compressed into the following backup:" fn_print_info_nl "A total of ${rootdirduexbackup} will be compressed into the following backup:"
fn_script_log "A total of ${rootdirduexbackup} will be compressed into the following backup: ${backupdir}/${backupname}.tar.gz" fn_script_log "A total of ${rootdirduexbackup} will be compressed into the following backup: ${backupdir}/${backupname}.tar.gz"
echo "${backupdir}/${backupname}.tar.gz" echo "${backupdir}/${backupname}.tar.gz"
echo ""
} }
# Check if server is started and wether to shut it down # Check if server is started and wether to shut it down
fn_backup_stop_server(){ fn_backup_stop_server(){
check_status.sh check_status.sh
echo ""
# Server is shut down # Server is shut down
if [ "${status}" == "0" ]; then if [ "${status}" == "0" ]; then
serverstopped="no" serverstopped="no"
@ -149,6 +147,7 @@ fn_backup_clearing(){
fn_print_ok_nl "Cleared ${backupclearcount} backups." fn_print_ok_nl "Cleared ${backupclearcount} backups."
fn_script_log_pass "Cleared ${backupclearcount} backups" fn_script_log_pass "Cleared ${backupclearcount} backups"
else else
fn_print_info_nl "No backups older than ${maxbackupdays} days were found."
fn_script_log "No backups older than ${maxbackupdays} days were found" fn_script_log "No backups older than ${maxbackupdays} days were found"
fi fi
else else

Loading…
Cancel
Save