From 29399adc3d0049ddefe33a509e263d36881a31fe Mon Sep 17 00:00:00 2001 From: frju365 Date: Sat, 25 Aug 2018 00:48:50 +0200 Subject: [mod] Use nginx Helper. See mod for install --- scripts/upgrade | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'scripts/upgrade') diff --git a/scripts/upgrade b/scripts/upgrade index c6b7a83..15075a3 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -121,11 +121,11 @@ ynh_secure_remove $final_path/live/config/initializers/timeout.rb # 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 + +#================================================= +# UPGRADE MASTODON +#================================================= # Upgrade rbenv and ruby plugins ynh_setup_source "$final_path/.rbenv" "app-rbenv" -- cgit v1.2.3-70-g09d2