1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/synapse_ynh.git synced 2024-09-03 20:26:38 +02:00

Fix PS1 variable in upgrade and install script

This commit is contained in:
Josué Tille 2018-08-29 14:17:14 +02:00
parent dd49cbb103
commit 4aa7ba9d04
2 changed files with 4 additions and 2 deletions

View file

@ -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

View file

@ -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