aboutsummaryrefslogtreecommitdiff
path: root/scripts/install
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/install')
-rw-r--r--scripts/install6
1 files changed, 1 insertions, 5 deletions
diff --git a/scripts/install b/scripts/install
index 5d5bf1e..b33f6ed 100644
--- a/scripts/install
+++ b/scripts/install
@@ -145,11 +145,7 @@ ynh_setup_source "$final_path/live" "app-mastodon"
# NGINX CONFIGURATION
#=================================================
-# TODO: use official helper ynh_add_nginx_config
-# Modify Nginx configuration file and copy it to Nginx conf directory
-sed -i "s@__PATH__@$app@g" ../conf/nginx.conf*
-sed -i "s@__FINALPATH__@$final_path@g" ../conf/nginx.conf*
-cp ../conf/nginx.conf /etc/nginx/conf.d/$domain.d/$app.conf
+ynh_add_nginx_config
#=================================================
# CREATE DEDICATED USER