Inform user that a new script exists
This commit is contained in:
parent
5e0f2f42fe
commit
bcec228598
2 changed files with 2 additions and 1 deletions
|
@ -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!");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue