Inform user that a new script exists

This commit is contained in:
Jinks 2021-05-04 18:24:41 +02:00
parent 5e0f2f42fe
commit bcec228598
2 changed files with 2 additions and 1 deletions

View file

@ -27,6 +27,7 @@ public enum BackupHandler {
try {
Files.write(script.toPath(), "#!/bin/bash\n# Put your backup script here!\n\nexit 0".getBytes(StandardCharsets.UTF_8));
script.setExecutable(true);
ExtBackup.logger.info("No backup script was found, a script has been created at " + script.getAbsolutePath() + ", please modify it to your liking.");
} catch (IOException e) {
ExtBackup.logger.error("Backup script does not exist and cannot be created!");
ExtBackup.logger.error("Disabling ExtBackup!");