mirror of
https://github.com/PhyreApps/PhyrePanel.git
synced 2024-11-22 07:30:25 +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);
|
file_put_contents($backupTempScript, $shellFileContent);
|
||||||
|
|
||||||
// chmod read only by root
|
// chmod read and delete by owner only
|
||||||
shell_exec('chmod 400 '.$backupTempScript);
|
chmod($backupTempScript, 0600);
|
||||||
|
|
||||||
$processId = shell_exec('bash '.$backupTempScript.' >> ' . $backupLogFilePath . ' & echo $!');
|
$processId = shell_exec('bash '.$backupTempScript.' >> ' . $backupLogFilePath . ' & echo $!');
|
||||||
$processId = intval($processId);
|
$processId = intval($processId);
|
||||||
|
|
Loading…
Reference in a new issue