mirror of
https://github.com/YunoHost-Apps/movim_ynh.git
synced 2024-09-03 19:46:19 +02:00
Merge branch 'dev'
This commit is contained in:
commit
27a154d895
1 changed files with 6 additions and 1 deletions
|
@ -2,6 +2,8 @@
|
|||
|
||||
# Retrieve arguments
|
||||
path=$(sudo yunohost app setting movim path)
|
||||
domain=$(sudo yunohost app setting movim domain)
|
||||
port=$(sudo yunohost app setting movim port)
|
||||
|
||||
# Install Movim files
|
||||
final_path=/var/www/movim
|
||||
|
@ -26,6 +28,9 @@ sudo su -c "cd $final_path && php composer.phar install" movim
|
|||
sudo sed -i "s@/ws/@$path/ws/@g" $final_path/app/assets/js/movim_websocket.js
|
||||
|
||||
# Update init scripts
|
||||
sudo sed -i "s@YHURL@$domain$path@g" ../conf/movim.{service,init}
|
||||
sudo sed -i "s@YHDIR@$final_path@g" ../conf/movim.{service,init}
|
||||
sudo sed -i "s@YHPORT@$port@g" ../conf/movim.{service,init}
|
||||
initcheck=`pgrep -ox systemd`
|
||||
if [ "$initcheck" = "1" ];
|
||||
then
|
||||
|
@ -44,4 +49,4 @@ fi
|
|||
|
||||
# Reload
|
||||
sudo yunohost app ssowatconf
|
||||
sudo movim restart
|
||||
sudo service movim restart
|
||||
|
|
Loading…
Reference in a new issue