Hey, thanks for the fast reply. I tried the isFirstRun() with the strapi/strapi:3.2.5-node12-alpine image but it appears that the result of:
const initHasRun = await pluginStore.get({ key: "initHasRun" });
On first service startup is just null. Doesn’t seem right.
Also, the setDefaultPermissions() function fails with:
app | [2020-11-10T13:17:18.176Z] error Error: The model permission can't be found.
app | at DatabaseManager.query (/srv/app/node_modules/strapi-database/lib/database-manager.js:75:13)
app | at Strapi.query (/srv/app/node_modules/strapi/lib/Strapi.js:436:20)
app | at /srv/app/config/functions/bootstrap.js:60:10
app | at Array.map (<anonymous>)
app | at setDefaultPermissions (/srv/app/config/functions/bootstrap.js:58:17)
app | at async module.exports (/srv/app/config/functions/bootstrap.js:83:3)
app | at async Strapi.runBootstrapFunctions (/srv/app/node_modules/strapi/lib/Strapi.js:407:5)
app | at async Strapi.load (/srv/app/node_modules/strapi/lib/Strapi.js:336:5)
app | at async Strapi.start (/srv/app/node_modules/strapi/lib/Strapi.js:190:9)