mirror of
https://github.com/ZeJMaN/shinken_ynh.git
synced 2025-06-07 17:35:30 +02:00
15 lines
364 B
Bash
15 lines
364 B
Bash
#!/bin/bash
|
|
|
|
# Retrieve arguments
|
|
domain=$(sudo yunohost app setting shinken domain)
|
|
path=$(sudo yunohost app setting shinken 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/shinken.conf
|
|
sudo service nginx reload
|
|
|