]> git.openstreetmap.org Git - nominatim.git/commitdiff
mark CentOS installation instructions as broken
authorSarah Hoffmann <lonvia@denofr.de>
Sun, 20 Dec 2020 10:35:29 +0000 (11:35 +0100)
committerSarah Hoffmann <lonvia@denofr.de>
Sun, 20 Dec 2020 10:35:29 +0000 (11:35 +0100)
Getting symfony-dotenv installed on CentOS is a major pain,
so just mark it broken instead.

Still sSwitch the config format to dotenv already.

vagrant/Install-on-Centos-7.sh
vagrant/Install-on-Centos-8.sh

index c67aab7c8adbb6eff97bdedf35289266857f661d..24b1766330141e56ed50e8fe213c494b33685389 100755 (executable)
@@ -6,6 +6,10 @@
 # Installing the Required Software
 # ================================
 #
+# !!! caution
+#     These instructions are currently broken because they do not
+#     include installation of the required PHP library symfony-dotenv.
+#
 # These instructions expect that you have a freshly installed CentOS version 7.
 # Make sure all packages are up-to-date by running:
 #
@@ -189,10 +193,7 @@ fi                                 #DOCS:
 # the name of your webserver user:
 
 #DOCS:```sh
-tee settings/local.php << EOF
-<?php
- @define('CONST_Database_Web_User', 'apache');
-EOF
+echo NOMINATIM_DATABASE_WEBUSER="apache" | tee .env
 #DOCS:```
 
 
index 8559726ba1f92279ee77495b44dc52a0704e9a77..517a5156111ec738f1d3f98d1794d819795d7533 100755 (executable)
@@ -6,6 +6,10 @@
 # Installing the Required Software
 # ================================
 #
+# !!! caution
+#     These instructions are currently broken because they do not
+#     include installation of the required PHP library symfony-dotenv.
+#
 # These instructions expect that you have a freshly installed CentOS version 8.
 # Make sure all packages are up-to-date by running:
 #
@@ -26,7 +30,7 @@
 # Now you can install all packages needed for Nominatim:
 
 #DOCS:    :::sh
-    sudo dnf --enablerepo=PowerTools install -y postgresql12-server \
+    sudo dnf --enablerepo=powertools install -y postgresql12-server \
                         postgresql12-contrib postgresql12-devel postgis30_12 \
                         wget git cmake make gcc gcc-c++ libtool policycoreutils-python-utils \
                         llvm-toolset ccache clang-tools-extra \
@@ -183,10 +187,7 @@ fi                                 #DOCS:
 # the name of your webserver user:
 
 #DOCS:```sh
-tee settings/local.php << EOF
-<?php
- @define('CONST_Database_Web_User', 'apache');
-EOF
+echo NOMINATIM_DATABASE_WEBUSER="apache" | tee .env
 #DOCS:```