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: unound variable' on ARM architecture

This commit is contained in:
Josué Tille 2018-03-09 23:02:59 +01:00
parent 6ebc6d6087
commit 4f4c66672b

View file

@ -286,6 +286,11 @@ then
# We get the last version of the synapse_port_db script because an old version could be buggy. # We get the last version of the synapse_port_db script because an old version could be buggy.
cp ../sources/synapse_port_db /opt/yunohost/matrix-synapse/bin/synapse_port_db cp ../sources/synapse_port_db /opt/yunohost/matrix-synapse/bin/synapse_port_db
# Fix "PS1: unbound variable" On ARM architecture
PS1=""
cp ../conf/virtualenv_activate $final_path/bin/activate
ynh_replace_string __FINAL_PATH__ $final_path $final_path/bin/activate
# Migrate database (in virtualenv) # Migrate database (in virtualenv)
source $final_path/bin/activate source $final_path/bin/activate
/opt/yunohost/matrix-synapse/bin/synapse_port_db --sqlite-database /var/lib/matrix-synapse/homeserver.db \ /opt/yunohost/matrix-synapse/bin/synapse_port_db --sqlite-database /var/lib/matrix-synapse/homeserver.db \