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
|
||||
|
||||
THIS_DIR=$(cd $(dirname $0); pwd)
|
||||
RAM=`grep MemTotal /proc/meminfo | awk '{print $2}'`
|
||||
cd $THIS_DIR
|
||||
|
||||
update() {
|
||||
@ -73,12 +72,7 @@ install_rocks() {
|
||||
install() {
|
||||
git pull
|
||||
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
|
||||
fi
|
||||
cd tg && ./configure && make
|
||||
RET=$?; if [ $RET -ne 0 ];
|
||||
then echo "Error. Exiting."; exit $RET;
|
||||
fi
|
||||
|
Reference in New Issue
Block a user