mirror of
https://github.com/YunoHost-Apps/searx_ynh.git
synced 2024-09-03 20:16:30 +02:00
Update upgrade
This commit is contained in:
parent
cc4e6a0228
commit
d113469115
1 changed files with 12 additions and 5 deletions
|
@ -11,10 +11,17 @@ path=${path%/}
|
||||||
# Check depends installation
|
# Check depends installation
|
||||||
sudo apt-get install git build-essential libxslt-dev python-dev python-virtualenv python-pybabel zlib1g-dev -y
|
sudo apt-get install git build-essential libxslt-dev python-dev python-virtualenv python-pybabel zlib1g-dev -y
|
||||||
|
|
||||||
|
|
||||||
# Check Swap
|
# Check Swap
|
||||||
tmp_swap_file=/tmp/searx_swapfile
|
|
||||||
if [ $(sudo swapon -s | wc -l) = 1 ];
|
if [ $(sudo swapon -s | wc -l) = 1 ];
|
||||||
then
|
then
|
||||||
|
mount | grep /tmp | grep tmpfs > /dev/null 2>&1
|
||||||
|
if [ $? = 1 ];
|
||||||
|
then
|
||||||
|
tmp_swap_file=/tmp/searx_swapfile
|
||||||
|
else
|
||||||
|
tmp_swap_file=/var/cache/
|
||||||
|
fi
|
||||||
sudo dd if=/dev/zero of=$tmp_swap_file bs=1M count=256
|
sudo dd if=/dev/zero of=$tmp_swap_file bs=1M count=256
|
||||||
sudo chmod 600 $tmp_swap_file
|
sudo chmod 600 $tmp_swap_file
|
||||||
sudo mkswap $tmp_swap_file
|
sudo mkswap $tmp_swap_file
|
||||||
|
|
Loading…
Add table
Reference in a new issue