Update Backup.php

This commit is contained in:
Bozhidar 2024-05-16 14:39:21 +03:00
parent e9570ef332
commit 17aa60351a

View file

@ -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);