mirror of
https://github.com/YunoHost-Apps/jitsi_ynh.git
synced 2024-09-03 19:35:57 +02:00
14 lines
565 B
Bash
14 lines
565 B
Bash
#!/bin/bash
|
|
|
|
# Retrieve arguments
|
|
domain=$(sudo yunohost app setting jitsi domain)
|
|
path=$(sudo yunohost app setting jitsi path)
|
|
|
|
# Remove trailing "/" for next commands
|
|
path=${path%/}
|
|
|
|
# Configure Nginx and reload
|
|
sed -i "s@PATHTOCHANGE@$path@g" ../conf/nginx.conf
|
|
sudo cp ../conf/nginx.conf /etc/nginx/conf.d/$domain.d/jitsi.conf
|
|
sudo service nginx reload
|
|
sudo service jitsi reload
|