Load functions after service start
This commit is contained in:
9
run.sh
9
run.sh
@@ -135,6 +135,9 @@ if [ "$1" == "import" ]; then
|
|||||||
sudo -u postgres psql -d gis -f /data/style/${NAME_SQL:-indexes.sql}
|
sudo -u postgres psql -d gis -f /data/style/${NAME_SQL:-indexes.sql}
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Load functions for OSM Carto v5.9.0
|
||||||
|
sudo -u postgres psql -d gis -f /data/functions.sql
|
||||||
|
|
||||||
#Import external data
|
#Import external data
|
||||||
chown -R renderer: /home/renderer/src/ /data/style/
|
chown -R renderer: /home/renderer/src/ /data/style/
|
||||||
if [ -f /data/style/scripts/get-external-data.py ] && [ -f /data/style/external-data.yml ]; then
|
if [ -f /data/style/scripts/get-external-data.py ] && [ -f /data/style/external-data.yml ]; then
|
||||||
@@ -181,15 +184,15 @@ if [ "$1" == "run" ]; then
|
|||||||
echo "export APACHE_ARGUMENTS='-D ALLOW_CORS'" >> /etc/apache2/envvars
|
echo "export APACHE_ARGUMENTS='-D ALLOW_CORS'" >> /etc/apache2/envvars
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Load functions for OSM Carto v5.9.0
|
|
||||||
sudo -u postgres psql -d gis -f /data/functions.sql
|
|
||||||
|
|
||||||
# Initialize PostgreSQL and Apache
|
# Initialize PostgreSQL and Apache
|
||||||
createPostgresConfig
|
createPostgresConfig
|
||||||
service postgresql start
|
service postgresql start
|
||||||
service apache2 restart
|
service apache2 restart
|
||||||
setPostgresPassword
|
setPostgresPassword
|
||||||
|
|
||||||
|
# Load functions for OSM Carto v5.9.0
|
||||||
|
sudo -u postgres psql -d gis -f /data/functions.sql
|
||||||
|
|
||||||
# Configure renderd threads
|
# Configure renderd threads
|
||||||
sed -i -E "s/num_threads=[0-9]+/num_threads=${THREADS:-4}/g" /etc/renderd.conf
|
sed -i -E "s/num_threads=[0-9]+/num_threads=${THREADS:-4}/g" /etc/renderd.conf
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user