Compare commits

...

2 Commits

Author SHA1 Message Date
CanbiZ 5f34c2c7c8
Tweak for Zipline (#3779)
Zipline is sensitiv with special characters
2024-09-24 13:18:21 -04:00
Jens Bodal f2662027a8
Update changedetection-install.sh (#3778)
The path to this file changed a while back: https://github.com/browserless/browserless/pull/3723/files#diff-81165fc8abb0ab49496bbf329e9efeedc7df0e667f85b4dcfa5c77f6f2c2e799
2024-09-24 07:50:43 -04:00
2 changed files with 3 additions and 3 deletions

View File

@ -144,7 +144,7 @@ Environment=NODE_ENV=production
Environment=PORT=3000
Environment=WORKSPACE_DIR=/opt/browserless/workspace
WorkingDirectory=/opt/browserless
ExecStart=/opt/browserless/start.sh
ExecStart=/opt/browserless/scripts/start.sh
SyslogIdentifier=browserless
[Install]
WantedBy=default.target

View File

@ -39,8 +39,8 @@ msg_ok "Installed Node.js"
msg_info "Setting up PostgreSQL"
DB_NAME=ziplinedb
DB_USER=zipline
DB_PASS="$(openssl rand -base64 18 | cut -c1-13)"
SECRET_KEY="$(openssl rand -base64 32 | cut -c1-24)"
DB_PASS="$(openssl rand -base64 18 | tr -dc 'a-zA-Z0-9' | cut -c1-13)"
SECRET_KEY="$(openssl rand -base64 32 | tr -dc 'a-zA-Z0-9' | cut -c1-13)"
$STD sudo -u postgres psql -c "CREATE ROLE $DB_USER WITH LOGIN PASSWORD '$DB_PASS';"
$STD sudo -u postgres psql -c "CREATE DATABASE $DB_NAME WITH OWNER $DB_USER ENCODING 'UTF8' TEMPLATE template0;"
$STD sudo -u postgres psql -c "ALTER ROLE $DB_USER SET client_encoding TO 'utf8';"