Remove disable-extf in launch.sh when lower RAM
This commit is contained in:
parent
aa2db63a62
commit
1c6177b93e
@ -1,7 +1,6 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
THIS_DIR=$(cd $(dirname $0); pwd)
|
THIS_DIR=$(cd $(dirname $0); pwd)
|
||||||
RAM=`grep MemTotal /proc/meminfo | awk '{print $2}'`
|
|
||||||
cd $THIS_DIR
|
cd $THIS_DIR
|
||||||
|
|
||||||
update() {
|
update() {
|
||||||
@ -73,12 +72,7 @@ install_rocks() {
|
|||||||
install() {
|
install() {
|
||||||
git pull
|
git pull
|
||||||
git submodule update --init --recursive
|
git submodule update --init --recursive
|
||||||
# If RAM is lower than 300MB disable extf queries
|
|
||||||
if [ $RAM -lt 307200 ]; then
|
|
||||||
cd tg && ./configure --disable-extf && make
|
|
||||||
else
|
|
||||||
cd tg && ./configure && make
|
cd tg && ./configure && make
|
||||||
fi
|
|
||||||
RET=$?; if [ $RET -ne 0 ];
|
RET=$?; if [ $RET -ne 0 ];
|
||||||
then echo "Error. Exiting."; exit $RET;
|
then echo "Error. Exiting."; exit $RET;
|
||||||
fi
|
fi
|
||||||
|
Reference in New Issue
Block a user