Skip to content
Snippets Groups Projects
Commit 477be8a5 authored by Bob Mottram's avatar Bob Mottram
Browse files

Different compare

parent ff997b79
No related branches found
No related tags found
No related merge requests found
......@@ -1032,8 +1032,8 @@ function initiate_automatic_backup {
fi
curr_hour=$(date +%H)
if ((curr_hour=backup_hour)); then
if ((webadmin_prev_hour!=backup_hour)); then
if [ "$curr_hour" -eq "$backup_hour" ]; then
if [ "$webadmin_prev_hour" -ne "$backup_hour" ]; then
touch "$backup_file"
echo $"Backup initiated $(date)" >> "$webadmin_install_dir/autobackup.log"
running_auto_backup=1
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment