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:
parent
efb5928aa1
commit
1c53edb720
2 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue