mirror of
https://github.com/YunoHost-Apps/synapse_ynh.git
synced 2024-09-03 20:26:38 +02:00
Update install
This commit is contained in:
parent
0a3ad81d5e
commit
3cee13dd50
1 changed files with 4 additions and 4 deletions
|
@ -126,17 +126,17 @@ chown $synapse_user:root -R $final_www_path
|
|||
ynh_script_progression --message="Creating Synapse config..." --weight=3
|
||||
|
||||
# Go in virtualenvironnement
|
||||
#set +u;
|
||||
set +u;
|
||||
source $install_dir/bin/activate
|
||||
#set -u;
|
||||
set -u;
|
||||
|
||||
# Generate config
|
||||
python -m synapse.app.homeserver --keys-directory /etc/matrix-$app/ --generate-config --server-name $server_name --report-stats=no -c homeserver.yml
|
||||
|
||||
# This function was defined when we called "source $install_dir/bin/activate". With this function we undo what "$install_dir/bin/activate" does
|
||||
#set +u;
|
||||
set +u;
|
||||
deactivate
|
||||
#set -u;
|
||||
set -u;
|
||||
|
||||
# Get random values from config
|
||||
registration_shared_secret=$(egrep "^registration_shared_secret:" homeserver.yml | cut -d'"' -f2)
|
||||
|
|
Loading…
Add table
Reference in a new issue