mirror of
https://github.com/PhyreApps/PhyrePanel.git
synced 2024-11-21 23:20:24 +00:00
Update Backup.php
This commit is contained in:
parent
e9570ef332
commit
17aa60351a
1 changed files with 2 additions and 1 deletions
|
@ -286,7 +286,7 @@ class Backup extends Model
|
|||
}
|
||||
|
||||
$shellFileContent .= PHP_EOL;
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -298,6 +298,7 @@ class Backup extends Model
|
|||
$shellFileContent .= 'rm -rf '.$backupTempPath.PHP_EOL;
|
||||
$shellFileContent .= 'echo "Backup complete"' . PHP_EOL;
|
||||
$shellFileContent .= 'touch ' . $backupPath. '/backup.done' . PHP_EOL;
|
||||
$shellFileContent .= 'phyre-php /usr/local/phyre/web/artisan phyre:run-backup-checks'. PHP_EOL;
|
||||
$shellFileContent .= 'rm -rf ' . $backupTempScript;
|
||||
|
||||
file_put_contents($backupTempScript, $shellFileContent);
|
||||
|
|
Loading…
Reference in a new issue