diff options
| author | nemsia <nemsia@nemsia.org> | 2017-07-13 00:12:42 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-07-13 00:12:42 +0200 |
| commit | 8711b925306be63d7b2b7669fe2ef3cf8ebdc476 (patch) | |
| tree | 46765118fb06d5e0c4caf911430b2f108f1476dc /scripts/install | |
| parent | 7cd6bc84ac242c38b719077a7ad5fcf23497421c (diff) | |
| download | mastodon_ynh-8711b925306be63d7b2b7669fe2ef3cf8ebdc476.tar.gz mastodon_ynh-8711b925306be63d7b2b7669fe2ef3cf8ebdc476.tar.bz2 mastodon_ynh-8711b925306be63d7b2b7669fe2ef3cf8ebdc476.zip | |
add __FINALPATH__ on Nginx conf (#46)
* [enh] Final_path on nginx
* [enh] final_path on nginx.conf
* Merge remote-tracking branch 'refs/remotes/YunoHost-Apps/master' into nginx-conf
# Conflicts:
# scripts/restore
* [fix] nginx path on backup
* [fix] Error on final_path nginx
* Version num in badge
Diffstat (limited to 'scripts/install')
| -rw-r--r-- | scripts/install | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/install b/scripts/install index 17a4573..f769a8b 100644 --- a/scripts/install +++ b/scripts/install @@ -214,7 +214,9 @@ RAILS_ENV=production bin/bundle exec rails mastodon:make_admin USERNAME=$admin_m RAILS_ENV=production bin/bundle exec rails mastodon:confirm_email USER_EMAIL=$admin_mastodon_mail ACOMMANDS -# Copy nginx config +# Modify Nginx configuration file and copy it to Nginx conf directory +sudo sed -i "s@__PATH__@$app@g" ../conf/nginx.conf* +sudo sed -i "s@__FINALPATH__@$final_path@g" ../conf/nginx.conf* sudo cp ../conf/nginx.conf /etc/nginx/conf.d/$domain.d/$app.conf # Install crontab |
