From 16cfcba4e1571b11710e0b084770ce462430677e Mon Sep 17 00:00:00 2001 From: frju365 Date: Sat, 25 Aug 2018 00:45:54 +0200 Subject: [PATCH] [mod] use official helper for nginx I didn't find any __PATH__ in nginx config... ?? --- scripts/install | 6 +----- 1 file changed, 1 insertion(+), 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