diff options
| author | nemsia <nemsia@nemsia.org> | 2017-04-10 15:46:57 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-04-10 15:46:57 +0200 |
| commit | b2cd5cc97ad463beac1f12f8ccc02a76c97dc257 (patch) | |
| tree | 4549d1e3dd1e1368a6b7a22ce48e83e7132eb530 /scripts/install | |
| parent | 226cbaad593b07c4289c961a73ba11d52d3b7edc (diff) | |
| download | mastodon_ynh-b2cd5cc97ad463beac1f12f8ccc02a76c97dc257.tar.gz mastodon_ynh-b2cd5cc97ad463beac1f12f8ccc02a76c97dc257.tar.bz2 mastodon_ynh-b2cd5cc97ad463beac1f12f8ccc02a76c97dc257.zip | |
Adjust Mastodon config .env.production
Diffstat (limited to 'scripts/install')
| -rw-r--r-- | scripts/install | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/install b/scripts/install index fb15986..f3c9ed4 100644 --- a/scripts/install +++ b/scripts/install @@ -113,7 +113,7 @@ sudo cp -a .env.production.sample .env.production sudo sed -i "s@REDIS_HOST=localhost@REDIS_HOST=127.0.0.1@g" "${final_path}/live/.env.production" sudo sed -i "s@DB_HOST=db@DB_HOST=/var/run/postgresql@g" "${final_path}/live/.env.production" sudo sed -i "s@DB_USER=mastodon@DB_USER=${dbuser}@g" "${final_path}/live/.env.production" -sudo sed -i "s@DB_NAME=mastodon@DB_NAME=${dbuser}@g" "${final_path}/live/.env.production" +sudo sed -i "s@DB_NAME=mastodon@DB_NAME=${dbname}@g" "${final_path}/live/.env.production" sudo sed -i "s@LOCAL_DOMAIN=domainedevotreinstance.tld@LOCAL_DOMAIN=${domain}@g" "${final_path}/live/.env.production" sudo sed -i "s@PAPERCLIP_SECRET=@PAPERCLIP_SECRET=$(head -n32 /dev/urandom | tr -dc -d 'A-Za-z0-9' | head -c32)@g" "${final_path}/live/.env.production" |
