1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/searx_ynh.git synced 2024-09-03 20:16:30 +02:00

[fix] 256MB swap is enough

This commit is contained in:
Alexis Gavoty 2014-09-23 10:26:11 +02:00
parent 8658db8ff6
commit 26f9c760df

View file

@ -12,7 +12,7 @@ sudo apt-get install git build-essential libxslt-dev python-dev python-virtualen
# Check Swap
if [ $(sudo swapon -s | wc -l) = 1 ];
then
sudo dd if=/dev/zero of=/tmp/myswapfile bs=1M count=1024
sudo dd if=/dev/zero of=/tmp/myswapfile bs=1M count=256
sudo chmod 600 /tmp/myswapfile
sudo mkswap /tmp/myswapfile
sudo swapon /tmp/myswapfile