Skip to content

Commit

Permalink
Adjust backup destination folder permissions (again). #6
Browse files Browse the repository at this point in the history
  • Loading branch information
Commifreak committed Feb 27, 2024
1 parent 486a008 commit ab6b944
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/scripts/backup.php
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,8 @@
* Adjusting backup destination permissions (for this run)
*/
exec("chown -R nobody:users " . escapeshellarg($abDestination));
exec("chmod -R u=rwx,g=rwx,o=rwx " . escapeshellarg($abDestination));
exec("chmod -R u=rw,g=r,o=- " . escapeshellarg($abDestination));
exec("chmod u=rwx,g=rx,o=- " . escapeshellarg($abDestination));

}
if (file_exists(ABSettings::$tempFolder . '/' . ABSettings::$stateFileAbort)) {
Expand Down

0 comments on commit ab6b944

Please sign in to comment.