Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Apache/core crashes related to 4.3.0 migration script #2049

Merged
merged 1 commit into from
Aug 30, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
14 changes: 9 additions & 5 deletions install/update/4.3.0.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
<?php
require_once __DIR__ . '/../../core/php/core.inc.php';
//
// EMPTY TO PREVENT FUTUR ISSUES, UNTIL ROOT CAUSE IS IDENTIFIED
// cf: https://community.jeedom.com/t/crash-install-4-3/89719
//

echo 'Ensure Content-Security-Policy (Report-Only) is enabled in apache';
shell_exec('sudo a2enmod headers');
shell_exec('grep -c "Content-Security-Policy" /etc/apache2/conf-available/security.conf > /dev/null 2>&1 || sudo cp /var/www/html/install/apache_security_unsecure /etc/apache2/conf-available/security.conf');
shell_exec('echo "systemctl restart apache2" | sudo at now');
//require_once __DIR__ . '/../../core/php/core.inc.php';

//echo 'Ensure Content-Security-Policy (Report-Only) is enabled in apache';
//shell_exec('sudo a2enmod headers');
//shell_exec('grep -c "Content-Security-Policy" /etc/apache2/conf-available/security.conf > /dev/null 2>&1 || sudo cp /var/www/html/install/apache_security_unsecure /etc/apache2/conf-available/security.conf');