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

Permissions on backup log

parent 88441803
No related branches found
No related tags found
No related merge requests found
......@@ -1036,6 +1036,7 @@ function initiate_automatic_backup {
if [ "$webadmin_prev_hour" -ne "$backup_hour" ]; then
touch "$backup_file"
echo $"Backup initiated $(date)" >> "$webadmin_install_dir/autobackup.log"
chown www-data:www-data "$webadmin_install_dir/autobackup.log"
running_auto_backup=1
fi
fi
......@@ -1195,6 +1196,7 @@ function backup_and_restore {
if [ $running_auto_backup ]; then
backup_name=$'scheduled'
date >> "$webadmin_install_dir/autobackup.log"
chown www-data:www-data "$webadmin_install_dir/autobackup.log"
running_auto_backup=
fi
......
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