-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun.sh
More file actions
14 lines (11 loc) · 669 Bytes
/
run.sh
File metadata and controls
14 lines (11 loc) · 669 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/usr/bin/env bash
# Safer bash scripts.
set -eo pipefail
PHP_ERROR_REPORTING=${PHP_ERROR_REPORTING:-"E_ALL & ~E_DEPRECATED & ~E_NOTICE"}
sed -ri 's/^display_errors\s*=\s*Off/display_errors = On/g' /etc/php/7.2/apache2/php.ini
sed -ri 's/^display_errors\s*=\s*Off/display_errors = On/g' /etc/php/7.2/cli/php.ini
sed -ri "s/^error_reporting\\s*=.*$//g" /etc/php/7.2/apache2/php.ini
sed -ri "s/^error_reporting\\s*=.*$//g" /etc/php/7.2/cli/php.ini
echo "error_reporting = $PHP_ERROR_REPORTING" >> /etc/php/7.2/apache2/php.ini
echo "error_reporting = $PHP_ERROR_REPORTING" >> /etc/php/7.2/cli/php.ini
source /etc/apache2/envvars && exec /usr/sbin/apache2 -DFOREGROUND