Commit fbb74dec authored by Guillaume Lebigot's avatar Guillaume Lebigot


parent 4379603e
Pipeline #12061 passed with stage
in 1 minute and 41 seconds
......@@ -8,7 +8,7 @@ import detect from 'detect-port';
import {initDB} from './dao/database';
import {initShortener} from './services/shortener';
import {initFavorites} from './services/favorites';
import {createUser, changePassword} from './services/user';
import {createUser, changePassword, initUsers} from './services/user';
import sudoBlock from 'sudo-block';
import {asyncCheckOrMkdir} from './lib/utils/files';
import {kmExplorerStart} from './services/kmExplorer';
......@@ -95,6 +95,8 @@ async function main() {
if (argv.staticServe) setState({opt: {staticServe: true}});
await initUsers();
if (argv.createPreviews) {
const karas = await getAllKaras();
await createImagePreviews(karas);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment