blob: af94c1c9750f4801f68c407dbc86c5d72fb191c6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
#!/bin/bash
post_install() {
cat <<- 'EOF'
Create the required PostgreSQL and users for nominatim by running
`sudo su - postgres "createuser -s nominatim; createuser http"`
Then `su` to user `nominatim` and follow the instructions at http://nominatim.org/release-docs/latest/admin/Import-and-Update/#choosing-the-data-to-import to download and import data.
EOF
}
pre_upgrade() {
if [[ -e "/usr/share/webapps/nominatim/settings/local.php" ]]; then
mkdir -p "/var/lib/nominatim/bin/settings/"
mv "/usr/share/webapps/nominatim/settings/local.php" "/var/lib/nominatim/bin/settings/local.php"
fi
}
|