From 4aa7ba9d0455824f674c9ae0abf8b5a972c42a80 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Josu=C3=A9=20Tille?= Date: Wed, 29 Aug 2018 14:17:14 +0200 Subject: [PATCH] Fix PS1 variable in upgrade and install script --- scripts/install | 3 ++- scripts/upgrade | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/scripts/install b/scripts/install index f7adc9b..f227bdb 100644 --- a/scripts/install +++ b/scripts/install @@ -141,7 +141,7 @@ else test -e $final_path/bin || virtualenv -p python2.7 $final_path # Install synapse in virtualenv - PS1="" + PS1=${PS1:-} cp ../conf/virtualenv_activate $final_path/bin/activate ynh_replace_string __FINAL_PATH__ $final_path $final_path/bin/activate @@ -168,6 +168,7 @@ fi #================================================= # Go in virtualenvironnement +PS1=${PS1:-} source $final_path/bin/activate # Get the dh.pem if exist diff --git a/scripts/upgrade b/scripts/upgrade index 4d9b53b..deede78 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -91,7 +91,7 @@ else test -e $final_path/bin || virtualenv -p python2.7 $final_path # Install synapse in virtualenv - PS1="" + PS1=${PS1:-} cp ../conf/virtualenv_activate $final_path/bin/activate ynh_replace_string __FINAL_PATH__ $final_path $final_path/bin/activate @@ -120,6 +120,7 @@ fi if [[ -z "$registration_shared_secret" ]] then # Go in virtualenvironnement + PS1=${PS1:-} source $final_path/bin/activate # Get the dh.pem if exist