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:
parent
4b7fdd3141
commit
254acc4918
|
|
@ -27,7 +27,7 @@ public class BoosterFileStorage {
|
||||||
}
|
}
|
||||||
|
|
||||||
private void init() {
|
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.exists()) {
|
||||||
if (!CONFIG_PATH.mkdir())
|
if (!CONFIG_PATH.mkdir())
|
||||||
logger.severe("Unable to create json storage directory");
|
logger.severe("Unable to create json storage directory");
|
||||||
|
|
|
||||||
|
|
@ -11,8 +11,8 @@ public final class Config extends AbstractConfig {
|
||||||
|
|
||||||
Config(Logger logger) {
|
Config(Logger logger) {
|
||||||
super(
|
super(
|
||||||
new File(System.getProperty("user.home") + File.separator
|
new File(File.separator
|
||||||
+ "share" + File.separator
|
+ "mnt" + File.separator
|
||||||
+ "configs" + File.separator
|
+ "configs" + File.separator
|
||||||
+ "Boosters"),
|
+ "Boosters"),
|
||||||
"config.yml", logger, Config.class);
|
"config.yml", logger, Config.class);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user