mirror of
https://github.com/YunoHost-Apps/movim_ynh.git
synced 2024-09-03 19:46:19 +02:00
Add support for /suffix URIs
This commit is contained in:
parent
ffa850acb8
commit
409a8a88e6
2 changed files with 3 additions and 3 deletions
|
@ -43,7 +43,7 @@ sudo cp $final_path/config/db.example.inc.php $final_path/config/db.inc.php
|
||||||
sudo sed -i "s/yhuser/$db_user/g" $final_path/config/db.inc.php
|
sudo sed -i "s/yhuser/$db_user/g" $final_path/config/db.inc.php
|
||||||
sudo sed -i "s/yhpwd/$db_pwd/g" $final_path/config/db.inc.php
|
sudo sed -i "s/yhpwd/$db_pwd/g" $final_path/config/db.inc.php
|
||||||
sudo sed -i "s/yhdb/$db_user/g" $final_path/config/db.inc.php
|
sudo sed -i "s/yhdb/$db_user/g" $final_path/config/db.inc.php
|
||||||
sudo sed -i "s@YHDIR@$path@g" $final_path/app/assets/js/movim_websocket.js
|
sudo sed -i "s@PATHTOCHANGE@$path@g" $final_path/app/assets/js/movim_websocket.js
|
||||||
|
|
||||||
# Populate Movim database
|
# Populate Movim database
|
||||||
sudo su -c "cd $final_path && php mud.php db set" -s /bin/sh www-data
|
sudo su -c "cd $final_path && php mud.php db set" -s /bin/sh www-data
|
||||||
|
|
|
@ -41,9 +41,9 @@ var MovimWebsocket = {
|
||||||
|
|
||||||
init : function() {
|
init : function() {
|
||||||
if(SECURE_WEBSOCKET) {
|
if(SECURE_WEBSOCKET) {
|
||||||
var uri = 'wss://' + BASE_HOST + '/YHDIR/ws/';
|
var uri = 'wss://' + BASE_HOST + 'PATHTOCHANGE/ws/';
|
||||||
} else {
|
} else {
|
||||||
var uri = 'ws://' + BASE_HOST + '/YHDIR/ws/';
|
var uri = 'ws://' + BASE_HOST + 'PATHTOCHANGE/ws/';
|
||||||
}
|
}
|
||||||
|
|
||||||
this.connection = new WebSocket(uri);
|
this.connection = new WebSocket(uri);
|
||||||
|
|
Loading…
Add table
Reference in a new issue