mirror of
https://github.com/YunoHost-Apps/rspamdui_ynh.git
synced 2024-09-03 20:16:32 +02:00
16 lines
413 B
Bash
16 lines
413 B
Bash
#!/bin/bash
|
|
|
|
# Retrieve arguments
|
|
domain=$(sudo yunohost app setting rspamdui domain)
|
|
path=$(sudo yunohost app setting rspamdui path)
|
|
|
|
# Check port availability
|
|
sudo yunohost app checkport 11334
|
|
if [[ ! $? -eq 0 ]]; then
|
|
exit 1
|
|
fi
|
|
|
|
# Configure Nginx and reload
|
|
sed -i "s@PATHTOCHANGE@${path%/}@g" ../conf/nginx.conf
|
|
sudo cp ../conf/nginx.conf /etc/nginx/conf.d/$domain.d/rspamdui.conf
|
|
sudo service nginx reload
|