Skip to content

Commit

Permalink
fix(Install): Update private key to min 40 chars length
Browse files Browse the repository at this point in the history
  • Loading branch information
h4570 authored Nov 30, 2024
1 parent d256b40 commit 95b1d24
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ step_5() {
sed -i "s/<SALT_INSERTED_BY_INSTALLER>/$salt/g" appsettings.json

# Generate and replace private key
privateKey="$(tr -dc A-Za-z0-9 </dev/urandom | head -c 20)"
privateKey="$(tr -dc A-Za-z0-9 </dev/urandom | head -c 40)"
sed -i "s/<KEY_GENERATED_BY_INSTALLER>/$privateKey/g" appsettings.json

chown -R armnas /var/www/armnas
Expand Down

0 comments on commit 95b1d24

Please sign in to comment.