misc(integrity checker): Disabled by default in Demo mode (#1804)

* misc(integrity checker): Disabled by default in `Demo mode`

* Update build_files_integrity.php

* Update cd.yml

* Revert "Update cd.yml"

This reverts commit ec74a0e0e2.
This commit is contained in:
Roman Kelesidis 2025-02-06 17:10:10 +03:00 committed by GitHub
commit 44be40c2e8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -13,7 +13,7 @@ if (!defined('BB_ROOT')) {
global $bb_cfg;
if (!$bb_cfg['integrity_check'] || APP_ENV === 'local') {
if (!$bb_cfg['integrity_check'] || APP_ENV === 'local' || IN_DEMO_MODE) {
return;
}
@ -39,10 +39,10 @@ $ignoreFiles = [
'*/.htaccess',
'robots.txt',
// TorrentPier specific
'*.md5',
'install.php',
'favicon.png',
hide_bb_path(CHECKSUMS_FILE),
hide_bb_path(BB_ENABLED),
'internal_data/triggers/*',
'library/config.php',
'library/defines.php',
'styles/images/logo/logo.png'