Update default storage path for configs

The storage path for configs has now been updated to a new directory. This change applies to both the init method in the BoosterFileStorage class and the Config constructor. Instead of the user home directory, configs will now be stored in the "/mnt" directory.
This commit is contained in:
2024-07-19 21:27:24 +02:00
parent 4b7fdd3141
commit 254acc4918
2 changed files with 3 additions and 3 deletions
@@ -27,7 +27,7 @@ public class BoosterFileStorage {
}
private void init() {
File CONFIG_PATH = new File(System.getProperty("user.home") + File.separator + "share" + File.separator + "configs" + File.separator + "Boosters");
File CONFIG_PATH = new File(File.separator + "mnt" + File.separator + "configs" + File.separator + "Boosters");
if (!CONFIG_PATH.exists()) {
if (!CONFIG_PATH.mkdir())
logger.severe("Unable to create json storage directory");
@@ -11,8 +11,8 @@ public final class Config extends AbstractConfig {
Config(Logger logger) {
super(
new File(System.getProperty("user.home") + File.separator
+ "share" + File.separator
new File(File.separator
+ "mnt" + File.separator
+ "configs" + File.separator
+ "Boosters"),
"config.yml", logger, Config.class);