From 6eed9ad333d7411bf59b63f09562bc6513500507 Mon Sep 17 00:00:00 2001 From: abeudin Date: Mon, 28 Dec 2015 12:29:37 +0100 Subject: [PATCH] Update upgrade --- scripts/upgrade | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/upgrade b/scripts/upgrade index 669f3ce..ade8b32 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 [ -z "$tmp_swap_file" ]; +if [ -z ${tmp_swap_file+x} ]; then sudo swapoff $tmp_swap_file sudo rm -f $tmp_swap_file