aboutsummaryrefslogtreecommitdiff
path: root/scripts/install
diff options
context:
space:
mode:
authormagikcypress <cyp@rouquin.me>2017-04-14 16:36:06 +0200
committermagikcypress <cyp@rouquin.me>2017-04-14 16:36:06 +0200
commit40e39fcfbbe83eea584886d972ff199e9e4daf18 (patch)
tree1369f860cfa2fcf2e541a121f1d0874740242f01 /scripts/install
parent3846d5a626446023e045084639c68032c83a2038 (diff)
downloadmastodon_ynh-40e39fcfbbe83eea584886d972ff199e9e4daf18.tar.gz
mastodon_ynh-40e39fcfbbe83eea584886d972ff199e9e4daf18.tar.bz2
mastodon_ynh-40e39fcfbbe83eea584886d972ff199e9e4daf18.zip
[fix] create secret keys with 128 character (not Uppercase)
Diffstat (limited to 'scripts/install')
-rw-r--r--scripts/install6
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/install b/scripts/install
index 9696925..eb3559a 100644
--- a/scripts/install
+++ b/scripts/install
@@ -136,9 +136,9 @@ sudo sed -i "s@DB_USER=postgres@DB_USER=${app}@g" "${final_path}/live/.env.produ
sudo sed -i "s@DB_NAME=postgres@DB_NAME=${app}_production@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"
-sudo sed -i "s@SECRET_KEY_BASE=@SECRET_KEY_BASE=$(head -n32 /dev/urandom | tr -dc -d 'A-Za-z0-9' | head -c32)@g" "${final_path}/live/.env.production"
-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@PAPERCLIP_SECRET=@PAPERCLIP_SECRET=$(head -n128 /dev/urandom | tr -dc -d 'a-z0-9' | head -c128)@g" "${final_path}/live/.env.production"
+sudo sed -i "s@SECRET_KEY_BASE=@SECRET_KEY_BASE=$(head -n128 /dev/urandom | tr -dc -d 'a-z0-9' | head -c128)@g" "${final_path}/live/.env.production"
+sudo sed -i "s@OTP_SECRET=@OTP_SECRET=$(head -n128 /dev/urandom | tr -dc -d 'a-z0-9' | head -c128)@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}@g" "${final_path}/live/.env.production"