(indexFilePath)
| 48 | } |
| 49 | |
| 50 | function isUpdateAllowed (indexFilePath) { |
| 51 | const indexSource = fs.readFileSync(indexFilePath, 'utf-8') |
| 52 | const $ = cheerio.load(indexSource) |
| 53 | const allowAutomaticUpdateValue = $('meta[name="solid-allow-automatic-updates"]').prop('content') |
| 54 | return !allowAutomaticUpdateValue || allowAutomaticUpdateValue === 'true' |
| 55 | } |