From aaec1ec07c864691d157452ff7288bdc9eac4cfe Mon Sep 17 00:00:00 2001 From: kemenaran Date: Fri, 21 Jul 2017 22:08:33 +0200 Subject: [PATCH] Update nginx configuration file on upgrade --- scripts/upgrade | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/upgrade b/scripts/upgrade index 06f7ac1..e941af8 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -46,5 +46,8 @@ sudo cp -f "$backup_config_file" "$config_file" # Restore file permissions sudo chown -R www-data: "$final_path" +# Update Nginx configuration file +sudo cp -f $root_path/conf/nginx.conf-nosub /etc/nginx/conf.d/$domain.d/mattermost.conf + # Start server sudo supervisorctl start mattermost