mirror of
https://github.com/PhyreApps/PhyrePanel.git
synced 2024-11-25 17:10:29 +00:00
Update Backup.php
This commit is contained in:
parent
e9570ef332
commit
17aa60351a
1 changed files with 2 additions and 1 deletions
|
@ -298,6 +298,7 @@ class Backup extends Model
|
||||||
$shellFileContent .= 'rm -rf '.$backupTempPath.PHP_EOL;
|
$shellFileContent .= 'rm -rf '.$backupTempPath.PHP_EOL;
|
||||||
$shellFileContent .= 'echo "Backup complete"' . PHP_EOL;
|
$shellFileContent .= 'echo "Backup complete"' . PHP_EOL;
|
||||||
$shellFileContent .= 'touch ' . $backupPath. '/backup.done' . 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;
|
$shellFileContent .= 'rm -rf ' . $backupTempScript;
|
||||||
|
|
||||||
file_put_contents($backupTempScript, $shellFileContent);
|
file_put_contents($backupTempScript, $shellFileContent);
|
||||||
|
|
Loading…
Reference in a new issue