From 409317b39a86e7b573a254d106a10f4ba2550a3e Mon Sep 17 00:00:00 2001 From: julienmalik Date: Mon, 30 Mar 2015 15:53:50 +0200 Subject: [PATCH] [fix] searx breaks /var/cache directory --- scripts/install | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/install b/scripts/install index 723955c..400bb93 100644 --- a/scripts/install +++ b/scripts/install @@ -20,12 +20,13 @@ sudo apt-get install git build-essential libxslt-dev python-dev python-virtualen # Check Swap if [ $(sudo swapon -s | wc -l) = 1 ]; then + # It is NOT possible to setup a swap file on a tmpfs filesystem mount | grep /tmp | grep tmpfs > /dev/null 2>&1 if [ $? = 1 ]; then tmp_swap_file=/tmp/searx_swapfile else - tmp_swap_file=/var/cache/ + tmp_swap_file=/var/cache/searx_swapfile fi sudo dd if=/dev/zero of=$tmp_swap_file bs=1M count=256 sudo chmod 600 $tmp_swap_file