aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorfrju365 <win10@tutanota.com>2018-08-25 00:45:54 +0200
committerGitHub <noreply@github.com>2018-08-25 00:45:54 +0200
commit16cfcba4e1571b11710e0b084770ce462430677e (patch)
treef9e52f5e56101081ef9d2d25bd23690f4dac7004 /scripts
parent9f983fa602a525d83109d26f3a5e72f5dfa9235f (diff)
downloadmastodon_ynh-16cfcba4e1571b11710e0b084770ce462430677e.tar.gz
mastodon_ynh-16cfcba4e1571b11710e0b084770ce462430677e.tar.bz2
mastodon_ynh-16cfcba4e1571b11710e0b084770ce462430677e.zip
[mod] use official helper for nginx
I didn't find any __PATH__ in nginx config... ??
Diffstat (limited to 'scripts')
-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