Aktualizovat „setup-mt“
This commit is contained in:
parent
25ceb9d5c5
commit
86d41ac5c1
1 changed files with 3 additions and 3 deletions
6
setup-mt
6
setup-mt
|
@ -1,5 +1,5 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
source "${BASH_SOURCE%/*}/config-file"
|
source config-file
|
||||||
|
|
||||||
|
|
||||||
echo "Create minetest user"
|
echo "Create minetest user"
|
||||||
|
@ -16,7 +16,7 @@ rm -rf /tmp/spatialindex
|
||||||
git clone https://github.com/libspatialindex/libspatialindex /tmp/spatialindex
|
git clone https://github.com/libspatialindex/libspatialindex /tmp/spatialindex
|
||||||
cd /tmp/spatialindex
|
cd /tmp/spatialindex
|
||||||
cmake . -DCMAKE_INSTALL_PREFIX=/usr
|
cmake . -DCMAKE_INSTALL_PREFIX=/usr
|
||||||
make
|
make -j$(nproc)
|
||||||
make install
|
make install
|
||||||
|
|
||||||
echo "Compile minetest version $mt_version"
|
echo "Compile minetest version $mt_version"
|
||||||
|
@ -41,7 +41,7 @@ cmake . \
|
||||||
-DPOSTGRESQL_CONFIG_EXECUTABLE=/usr/bin/pg_config \
|
-DPOSTGRESQL_CONFIG_EXECUTABLE=/usr/bin/pg_config \
|
||||||
-DPOSTGRESQL_LIBRARY=/usr/lib/libpq.so \
|
-DPOSTGRESQL_LIBRARY=/usr/lib/libpq.so \
|
||||||
-DRUN_IN_PLACE=0
|
-DRUN_IN_PLACE=0
|
||||||
make
|
make -j$(nproc)
|
||||||
echo "Stop minetestsrv service(upgrade case)"
|
echo "Stop minetestsrv service(upgrade case)"
|
||||||
systemctl stop minetestsrv
|
systemctl stop minetestsrv
|
||||||
make install
|
make install
|
||||||
|
|
Loading…
Reference in a new issue