File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed
Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -47,6 +47,7 @@ msg_info "Setting up PostgreSQL DB"
4747DB_NAME=linkwardendb
4848DB_USER=linkwarden
4949DB_PASS=" $( openssl rand -base64 18 | tr -d ' /' | cut -c1-13) "
50+ SECRET_KEY=" $( head /dev/urandom | tr -dc A-Za-z0-9 | head -c 32) "
5051$STD sudo -u postgres psql -c " CREATE ROLE $DB_USER WITH LOGIN PASSWORD '$DB_PASS ';"
5152$STD sudo -u postgres psql -c " CREATE DATABASE $DB_NAME WITH OWNER $DB_USER ENCODING 'UTF8' TEMPLATE template0;"
5253$STD sudo -u postgres psql -c " ALTER ROLE $DB_USER SET client_encoding TO 'utf8';"
@@ -97,7 +98,6 @@ $STD yarn
9798$STD npx playwright install-deps
9899$STD yarn playwright install
99100IP=$( hostname -I | awk ' {print $1}' )
100- SECRET_KEY=" $( head /dev/urandom | tr -dc A-Za-z0-9 | head -c 32) "
101101env_path=" /opt/linkwarden/.env"
102102echo "
103103NEXTAUTH_SECRET=${SECRET_KEY}
You can’t perform that action at this time.
0 commit comments