fix(seerr): set public.initialized=true to skip setup wizard on every start
This commit is contained in:
@@ -48,6 +48,14 @@ data:
|
|||||||
settings.main.mediaServerType = 'JELLYFIN';
|
settings.main.mediaServerType = 'JELLYFIN';
|
||||||
console.log('Set main.mediaServerType = JELLYFIN');
|
console.log('Set main.mediaServerType = JELLYFIN');
|
||||||
}
|
}
|
||||||
|
// Mark setup as complete so the wizard never shows
|
||||||
|
if (!settings.public) {
|
||||||
|
settings.public = {};
|
||||||
|
}
|
||||||
|
if (!settings.public.initialized) {
|
||||||
|
settings.public.initialized = true;
|
||||||
|
console.log('Set public.initialized = true');
|
||||||
|
}
|
||||||
if (!settings.jellyfin || !settings.jellyfin.apiKey) {
|
if (!settings.jellyfin || !settings.jellyfin.apiKey) {
|
||||||
console.log('Jellyfin apiKey missing — restoring from defaults');
|
console.log('Jellyfin apiKey missing — restoring from defaults');
|
||||||
settings.jellyfin = JSON.parse(fs.readFileSync(DEFAULTS, 'utf8'));
|
settings.jellyfin = JSON.parse(fs.readFileSync(DEFAULTS, 'utf8'));
|
||||||
@@ -83,7 +91,7 @@ spec:
|
|||||||
labels:
|
labels:
|
||||||
app: overseerr
|
app: overseerr
|
||||||
annotations:
|
annotations:
|
||||||
restartedAt: "2026-04-11T07:00:00Z"
|
restartedAt: "2026-04-11T07:30:00Z"
|
||||||
spec:
|
spec:
|
||||||
initContainers:
|
initContainers:
|
||||||
# Restore Jellyfin connection config if it was cleared (e.g. after pod restart with bad key)
|
# Restore Jellyfin connection config if it was cleared (e.g. after pod restart with bad key)
|
||||||
|
|||||||
Reference in New Issue
Block a user