|
|
|
@ -174,7 +174,7 @@ namespace Jellyfin.Server
|
|
|
|
|
{
|
|
|
|
|
// dataDir
|
|
|
|
|
// IF --datadir
|
|
|
|
|
// ELSE IF $JELLYFIN_DATA_PATH
|
|
|
|
|
// ELSE IF $JELLYFIN_DATA_DIR
|
|
|
|
|
// ELSE IF windows, use <%APPDATA%>/jellyfin
|
|
|
|
|
// ELSE IF $XDG_DATA_HOME then use $XDG_DATA_HOME/jellyfin
|
|
|
|
|
// ELSE use $HOME/.local/share/jellyfin
|
|
|
|
@ -182,7 +182,7 @@ namespace Jellyfin.Server
|
|
|
|
|
|
|
|
|
|
if (string.IsNullOrEmpty(dataDir))
|
|
|
|
|
{
|
|
|
|
|
dataDir = Environment.GetEnvironmentVariable("JELLYFIN_DATA_PATH");
|
|
|
|
|
dataDir = Environment.GetEnvironmentVariable("JELLYFIN_DATA_DIR");
|
|
|
|
|
|
|
|
|
|
if (string.IsNullOrEmpty(dataDir))
|
|
|
|
|
{
|
|
|
|
@ -191,8 +191,6 @@ namespace Jellyfin.Server
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Directory.CreateDirectory(dataDir);
|
|
|
|
|
|
|
|
|
|
// configDir
|
|
|
|
|
// IF --configdir
|
|
|
|
|
// ELSE IF $JELLYFIN_CONFIG_DIR
|
|
|
|
@ -285,6 +283,7 @@ namespace Jellyfin.Server
|
|
|
|
|
// Ensure the main folders exist before we continue
|
|
|
|
|
try
|
|
|
|
|
{
|
|
|
|
|
Directory.CreateDirectory(dataDir);
|
|
|
|
|
Directory.CreateDirectory(logDir);
|
|
|
|
|
Directory.CreateDirectory(configDir);
|
|
|
|
|
Directory.CreateDirectory(cacheDir);
|
|
|
|
|