workspace: prepare: ensure file creation

This commit is contained in:
undefined committed 2023-03-22 17:43:25 +08:00
1 parent 718e8e9e10
commit f01a8b6671
2 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -446,7 +446,7 @@ ${nixConfBase}`);
domainId: 'system',
};
console.log(config);
exec(`hydrooj cli script migrateHustoj '${JSON.stringify(config)}'`);
exec(`hydrooj cli script migrateHustoj '${JSON.stringify(config)}'`, { stdio: 'inherit' });
if (!getConfig('OJ_REGISTER')) exec('hydrooj cli user setPriv 0 0');
},
'pm2 restart hydrooj',