Renamed "gameyfin.root" to "gameyfin.sources"

This commit is contained in:
grimsi
2022-08-13 16:34:56 +02:00
parent ba4568cb35
commit c3de83c6b9
4 changed files with 6 additions and 7 deletions
@@ -18,7 +18,7 @@ import java.util.stream.StreamSupport;
@Configuration @Configuration
public class FilesystemConfig { public class FilesystemConfig {
@Value("#{'${gameyfin.root}'.split(',')[0]}") @Value("#{'${gameyfin.sources}'.split(',')[0]}")
private String firstLibraryPath; private String firstLibraryPath;
@Autowired @Autowired
@@ -29,9 +29,8 @@ import static de.grimsi.gameyfin.util.FilenameUtil.hasGameArchiveExtension;
@RequiredArgsConstructor @RequiredArgsConstructor
public class LibraryService { public class LibraryService {
@Value("${gameyfin.root}") @Value("${gameyfin.sources}")
private List<String> libraryFolders; private List<String> libraryFolders;
private final IgdbWrapper igdbWrapper; private final IgdbWrapper igdbWrapper;
private final DetectedGameRepository detectedGameRepository; private final DetectedGameRepository detectedGameRepository;
private final UnmappableFileRepository unmappableFileRepository; private final UnmappableFileRepository unmappableFileRepository;
@@ -1,7 +1,7 @@
{ {
"properties": [ "properties": [
{ {
"name": "gameyfin.root", "name": "gameyfin.sources",
"type": "java.lang.String[]", "type": "java.lang.String[]",
"description": "List of directories Gameyfin should scan for games." "description": "List of directories Gameyfin should scan for games."
} }
+3 -3
View File
@@ -1,10 +1,10 @@
FROM openjdk:18 FROM openjdk:18
ENV GAMEYFIN_ROOT=/opt/gameyfin-library ENV GAMEYFIN_SOURCES=/opt/gameyfin-library
RUN groupadd gameyfin && useradd gameyfin -g gameyfin && \ RUN groupadd gameyfin && useradd gameyfin -g gameyfin && \
mkdir -p /opt/gameyfin ${GAMEYFIN_ROOT} && \ mkdir -p /opt/gameyfin ${GAMEYFIN_SOURCES} && \
chown -R gameyfin:gameyfin /opt/gameyfin ${GAMEYFIN_ROOT} chown -R gameyfin:gameyfin /opt/gameyfin ${GAMEYFIN_SOURCES}
USER gameyfin:gameyfin USER gameyfin:gameyfin