mirror of
https://github.com/PhyreApps/PhyrePanel.git
synced 2024-11-25 09:00:27 +00:00
Update Backup.php
This commit is contained in:
parent
5bc633d7b9
commit
e72e6c220a
1 changed files with 2 additions and 2 deletions
|
@ -287,8 +287,8 @@ class Backup extends Model
|
|||
|
||||
file_put_contents($backupTempScript, $shellFileContent);
|
||||
|
||||
// chmod read only by root
|
||||
shell_exec('chmod 400 '.$backupTempScript);
|
||||
// chmod read and delete by owner only
|
||||
chmod($backupTempScript, 0600);
|
||||
|
||||
$processId = shell_exec('bash '.$backupTempScript.' >> ' . $backupLogFilePath . ' & echo $!');
|
||||
$processId = intval($processId);
|
||||
|
|
Loading…
Reference in a new issue