diff options
| author | magikcypress <cyp@rouquin.me> | 2017-04-13 17:22:49 +0200 |
|---|---|---|
| committer | magikcypress <cyp@rouquin.me> | 2017-04-13 17:22:49 +0200 |
| commit | 5665b8030ff665227c070ecdeff8ef9540d60322 (patch) | |
| tree | b546e0ea8a7e91e0d3fd6e812ce0c508ce324a63 /scripts/install | |
| parent | 4f11bfe432c675fe33a22cb6a6b8e08eb3c13234 (diff) | |
| download | mastodon_ynh-5665b8030ff665227c070ecdeff8ef9540d60322.tar.gz mastodon_ynh-5665b8030ff665227c070ecdeff8ef9540d60322.tar.bz2 mastodon_ynh-5665b8030ff665227c070ecdeff8ef9540d60322.zip | |
[fix] clean sed
Diffstat (limited to 'scripts/install')
| -rw-r--r-- | scripts/install | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/scripts/install b/scripts/install index 9c100c2..74106f4 100644 --- a/scripts/install +++ b/scripts/install @@ -134,7 +134,6 @@ sudo sed -i "s@REDIS_HOST=redis@REDIS_HOST=127.0.0.1@g" "${final_path}/live/.env sudo sed -i "s@DB_HOST=db@DB_HOST=/var/run/postgresql@g" "${final_path}/live/.env.production" sudo sed -i "s@DB_USER=postgres@DB_USER=${app}@g" "${final_path}/live/.env.production" sudo sed -i "s@DB_NAME=postgres@DB_NAME=${app}_production@g" "${final_path}/live/.env.production" -# sudo sed -i "s@DB_PASS=@DB_PASS=${dbpass}@g" "${final_path}/live/.env.production" sudo sed -i "s@LOCAL_DOMAIN=example.com@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" @@ -142,7 +141,7 @@ sudo sed -i "s@SECRET_KEY_BASE=@SECRET_KEY_BASE=$(head -n32 /dev/urandom | tr -d sudo sed -i "s@OTP_SECRET=@OTP_SECRET=$(head -n32 /dev/urandom | tr -dc -d 'A-Za-z0-9' | head -c32)@g" "${final_path}/live/.env.production" sudo sed -i 's,SMTP_LOGIN=,SMTP_LOGIN='${admin_mastodon}'@'${domain}',' "${final_path}/live/.env.production" -sudo sed -i 's,SMTP_PASSWORD=,SMTP_PASSWORD=${admin_pass},' "${final_path}/live/.env.production" +sudo sed -i 's@SMTP_PASSWORD=@SMTP_PASSWORD=${admin_pass}@g' "${final_path}/live/.env.production" sudo sed -i "s@SMTP_SERVER=smtp.mailgun.org@SMTP_SERVER=localhost@g" "${final_path}/live/.env.production" sudo sed -i 's,SMTP_FROM_ADDRESS=notifications@example.com,SMTP_FROM_ADDRESS='${admin_mastodon}'@'${domain}',' "${final_path}/live/.env.production" sudo sed -i "s@#SMTP_OPENSSL_VERIFY_MODE=peer@SMTP_OPENSSL_VERIFY_MODE=none@g" "${final_path}/live/.env.production" |
