Fix sqlite cmd

This commit is contained in:
soraefir
2026-05-31 12:19:57 +02:00
parent f8c696dc57
commit 50c96de851

View File

@@ -170,15 +170,8 @@ in {
''} ''}
${pkgs.sqlite}/bin/sqlite3 ${serverCfg.configPath}/jellyfin/data/data/jellyfin.db <<EOF ${pkgs.sqlite}/bin/sqlite3 ${serverCfg.configPath}/jellyfin/data/data/jellyfin.db <<EOF
INSERT OR IGNORE INTO ApiKeys (Id, Token, AppName, DeviceName, DateCreated, DateLastActivity) INSERT OR IGNORE INTO ApiKeys (Id, AccessToken, Name, DateCreated, DateLastActivity)
VALUES ( VALUES ( 1, "$HOMEPAGE_VAR_JELLYFIN_API", 'Home', strftime('%Y-%m-%d %H:%M:%S', 'now'), strftime('%Y-%m-%d %H:%M:%S', 'now'));
lower(hex(randomblob(16))),
"$HOMEPAGE_VAR_JELLYFIN_API",
'Home',
'Home',
strftime('%Y-%m-%d %H:%M:%S', 'now'),
strftime('%Y-%m-%d %H:%M:%S', 'now')
);
EOF EOF
echo "Completed Setup" echo "Completed Setup"