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

[fix] swapoff

This commit is contained in:
Beudbeud 2015-09-08 23:36:19 +02:00
parent efb5928aa1
commit 1c53edb720
2 changed files with 2 additions and 2 deletions

View file

@ -46,7 +46,7 @@ sudo virtualenv $final_path
sudo bash -c "source $final_path/bin/activate && pip install -r $final_path/requirements.txt"
# Disable swapfile
if [ -f $tmp_swap_file ];
if [[ -z "$tmp_swap_file" ]];
then
sudo swapoff $tmp_swap_file
sudo rm -f $tmp_swap_file

View file

@ -33,7 +33,7 @@ sudo cp -r ../sources/* $final_path
sudo bash -c "source $final_path/bin/activate && pip install -r $final_path/requirements.txt --upgrade"
# Disable swapfile
if [ -f $tmp_swap_file ];
if [[ -z "$tmp_swap_file" ]];
then
sudo swapoff $tmp_swap_file
sudo rm -f $tmp_swap_file