Skip to content

Commit

Permalink
fix(sys-server): update system extension server app pkg;
Browse files Browse the repository at this point in the history
  • Loading branch information
maslow committed Dec 28, 2021
1 parent df2d84b commit a96561e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Binary file not shown.
Binary file removed packages/system-server/extension/system-server.lapp
Binary file not shown.
8 changes: 4 additions & 4 deletions packages/system-server/src/init.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const SYSTEM_EXTENSION_APPID = `00000000-0000-0000-0000-000000000000`
/**
* x. create collection indexes
* a. create root account if not exists
* b. create & init`system-server` for root account if not exists
* b. create & init`system-extension-server` for root account if not exists
* c. start system server app if not running
*/
async function main() {
Expand All @@ -34,15 +34,15 @@ async function main() {
const app = await getApplicationByAppid(SYSTEM_EXTENSION_APPID)
if (!app) {
await InitializerApi.createSystemExtensionApp(account_id, SYSTEM_EXTENSION_APPID)
logger.info('create system server app')
logger.info('create system extension server app')

await InitializerApi.initSystemExtensionApp(SYSTEM_EXTENSION_APPID)
logger.info('init system server app')
logger.info('init system extension server app')
}

// run system extension server app
await InitializerApi.startSystemExtensionApp(SYSTEM_EXTENSION_APPID)
logger.info('start system server app')
logger.info('start system extension server app')
}


Expand Down

0 comments on commit a96561e

Please sign in to comment.