Update config file paths
Changed the hardcoded file paths for both Config and BotConfig initializations. The file paths now point to "/mnt/configs/DiscordLink", replacing the previous location in the user's home directory.
This commit is contained in:
parent
cb4601dbfe
commit
a8f24e8d91
|
|
@ -35,7 +35,7 @@ public class BotConfig {
|
|||
public static File CONFIGPATH;
|
||||
|
||||
public static void init() { // todo setup share for the config
|
||||
CONFIGPATH = new File(System.getProperty("user.home") + File.separator + "share" + File.separator + "configs" + File.separator + "DiscordLink");
|
||||
CONFIGPATH = new File(File.separator + "mnt" + File.separator + "configs" + File.separator + "DiscordLink");
|
||||
CONFIG_FILE = new File(CONFIGPATH, "bot-config.yml");
|
||||
|
||||
configLoader = YAMLConfigurationLoader.builder()
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@ public final class Config {
|
|||
public static File CONFIGPATH;
|
||||
|
||||
public static void init() { // todo setup share for the config
|
||||
CONFIGPATH = new File(System.getProperty("user.home") + File.separator + "share" + File.separator + "configs" + File.separator + "DiscordLink");
|
||||
CONFIGPATH = new File(File.separator + "mnt" + File.separator + "configs" + File.separator + "DiscordLink");
|
||||
CONFIG_FILE = new File(CONFIGPATH, "config.yml");
|
||||
|
||||
configLoader = YAMLConfigurationLoader.builder()
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user