diff --git a/scripts/upgrade b/scripts/upgrade index 4cf3e03..669f3ce 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -54,7 +54,7 @@ sudo service ffsync stop cd $final_path && sudo make build && sudo ./local/bin/easy_install gunicorn # Disable swapfile -if [ -f $tmp_swap_file ] || [ -z "$tmp_swap_file" ]; +if [ -z "$tmp_swap_file" ]; then sudo swapoff $tmp_swap_file sudo rm -f $tmp_swap_file