[Mapbender-commits] r9991 - trunk/mapbender/resources/db

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Wed Nov 7 03:06:07 PST 2018


Author: armin11
Date: 2018-11-07 03:06:07 -0800 (Wed, 07 Nov 2018)
New Revision: 9991

Modified:
   trunk/mapbender/resources/db/install_geoportal_mb28.sh
Log:
New version with configured php error log

Modified: trunk/mapbender/resources/db/install_geoportal_mb28.sh
===================================================================
--- trunk/mapbender/resources/db/install_geoportal_mb28.sh	2018-11-06 07:36:07 UTC (rev 9990)
+++ trunk/mapbender/resources/db/install_geoportal_mb28.sh	2018-11-07 11:06:07 UTC (rev 9991)
@@ -75,11 +75,11 @@
 ############################################################
 use_proxy="true"
 
-http_proxy_host="proxyip" # TODO: adopt!!!
-http_proxy_port="proxyport" # TODO: adopt!!!
+http_proxy_host="proxyip"
+http_proxy_port="proxyport"
 
-https_proxy_host="proxyip" # TODO: adopt!!!
-https_proxy_port="proxyport" # TODO: adopt!!!
+https_proxy_host="proxyip"
+https_proxy_port="proxyport"
 ############################################################
 # what should be done
 ############################################################
@@ -144,8 +144,20 @@
 # mysql root password: mysqlroot - normally debian-sys-maint
 # after install - 1.9GB!!!
 ############################################################
-#
+# adopt php logging - only log errors
 ############################################################
+cp /etc/php5/cli/php.ini /etc/php5/cli/php.ini_geoportal_backup
+cp /etc/php5/apache2/php.ini /etc/php5/apache2/php.ini_geoportal_backup
+
+
+sed -i "s/error_reporting = E_ALL & ~E_DEPRECATED & ~E_STRICT/error_reporting = E_ERROR/g" /etc/php5/cli/php.ini
+sed -i "s/;error_log = php_errors.log/error_log = \/tmp\/php5_cli_errors\.log/g" /etc/php5/cli/php.ini
+
+
+sed -i "s/error_reporting = E_ALL & ~E_DEPRECATED & ~E_STRICT/error_reporting = E_ERROR/g" /etc/php5/apache2/php.ini
+sed -i "s/;error_log = php_errors.log/error_log = \/tmp\/php5_apache_errors\.log/g" /etc/php5/apache2/php.ini
+
+
 # set some environment variables
 ############################################################
 if [ $use_proxy = 'true' ]; then
@@ -1077,6 +1089,9 @@
 rm -R ${installation_folder}portal
 rm -R ${installation_folder}svn
 rm -R ${installation_folder}conf
+rm -R ${installation_folder}access
+rm -R ${installation_folder}db_backup
+
 rm ${installation_folder}geoportal_database_adoption_1.sql
 rm ${installation_folder}geoportal_database_adoption_2.sql
 
@@ -1101,6 +1116,14 @@
         echo "Backup version of file exists - overwrite it with the original one"
         cp /etc/apache2/conf-available/phppgadmin.conf_backup_geoportal /etc/apache2/conf-available/phppgadmin.conf
 fi 
+if [ -e "/etc/php5/apache2/php.ini_geoportal_backup" ]; then
+        echo "Backup version of file exists - overwrite it with the original one"
+        cp /etc/php5/apache2/php.ini_geoportal_backup /etc/php5/apache2/php.ini
+fi 
+if [ -e "/etc/php5/cli/php.ini_geoportal_backup" ]; then
+        echo "Backup version of file exists - overwrite it with the original one"
+        cp /etc/php5/cli/php.ini_geoportal_backup /etc/php5/cli/php.ini
+fi 
 rm *.tar.gz*
 rm *.sql
 rm -R ${installation_folder}cronjobs



More information about the Mapbender_commits mailing list