From 4f4c66672be3535e7335ae5d37502cff113d8b21 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Josu=C3=A9=20Tille?= Date: Fri, 9 Mar 2018 23:02:59 +0100 Subject: [PATCH] Fix 'PS1: unound variable' on ARM architecture --- scripts/upgrade | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scripts/upgrade b/scripts/upgrade index 9d552ce..8bd438a 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -286,6 +286,11 @@ then # 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 + # 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) source $final_path/bin/activate /opt/yunohost/matrix-synapse/bin/synapse_port_db --sqlite-database /var/lib/matrix-synapse/homeserver.db \