From 6a7bdd523e32aac7a99aec5a4dff24b65f8f233d Mon Sep 17 00:00:00 2001 From: Bozhidar Date: Thu, 16 May 2024 14:20:16 +0300 Subject: [PATCH] Update Backup.php --- web/app/Models/Backup.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/app/Models/Backup.php b/web/app/Models/Backup.php index 8f1210a..fe53320 100644 --- a/web/app/Models/Backup.php +++ b/web/app/Models/Backup.php @@ -286,7 +286,7 @@ class Backup extends Model } $shellFileContent .= PHP_EOL; - break; + } } @@ -299,7 +299,7 @@ class Backup extends Model $shellFileContent .= 'echo "Backup complete"' . PHP_EOL; $shellFileContent .= 'touch ' . $backupPath. '/backup.done' . PHP_EOL; $shellFileContent .= 'rm -rf ' . $backupTempScript; - + file_put_contents($backupTempScript, $shellFileContent); // chmod read and delete by owner only