Skip to content

Commit

Permalink
Fix backup folder not being created (#157)
Browse files Browse the repository at this point in the history
Signed-off-by: Lyfts <127234178+Lyfts@users.noreply.github.com>
  • Loading branch information
Lyfts authored Dec 15, 2024
1 parent b155d9d commit 815a843
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/main/java/serverutils/task/backup/BackupTask.java
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,9 @@ public class BackupTask extends Task {
private boolean post = false;

static {
BACKUP_FOLDER = FileUtils.newFile(
backups.backup_folder_path.isEmpty() ? new File("/backups/") : new File(backups.backup_folder_path));
BACKUP_FOLDER = backups.backup_folder_path.isEmpty() ? new File("/backups/")
: new File(backups.backup_folder_path);
if (!BACKUP_FOLDER.exists()) BACKUP_FOLDER.mkdirs();
clearOldBackups();
ServerUtilities.LOGGER.info("Backups folder - {}", BACKUP_FOLDER.getAbsolutePath());
}
Expand Down

0 comments on commit 815a843

Please sign in to comment.