mirror of
https://github.com/tteck/Proxmox.git
synced 2025-07-03 16:53:20 +00:00
Compare commits
4 Commits
6a02ba1335
...
1a14c87209
Author | SHA1 | Date | |
---|---|---|---|
|
1a14c87209 | ||
|
4ead590cf4 | ||
|
5f34c2c7c8 | ||
|
f2662027a8 |
@ -68,7 +68,8 @@ if [[ ! -f /opt/${APP}_version.txt ]] || [[ "${RELEASE}" != "$(cat /opt/${APP}_v
|
|||||||
|
|
||||||
msg_info "Updating ${APP} to ${RELEASE}"
|
msg_info "Updating ${APP} to ${RELEASE}"
|
||||||
cd /opt/tianji
|
cd /opt/tianji
|
||||||
git checkout -q v${RELEASE}
|
git checkout -f -q v${RELEASE}
|
||||||
|
cd src/server
|
||||||
pnpm db:migrate:apply >/dev/null 2>&1
|
pnpm db:migrate:apply >/dev/null 2>&1
|
||||||
echo "${RELEASE}" >/opt/${APP}_version.txt
|
echo "${RELEASE}" >/opt/${APP}_version.txt
|
||||||
msg_ok "Updated ${APP} to ${RELEASE}"
|
msg_ok "Updated ${APP} to ${RELEASE}"
|
||||||
|
@ -144,7 +144,7 @@ Environment=NODE_ENV=production
|
|||||||
Environment=PORT=3000
|
Environment=PORT=3000
|
||||||
Environment=WORKSPACE_DIR=/opt/browserless/workspace
|
Environment=WORKSPACE_DIR=/opt/browserless/workspace
|
||||||
WorkingDirectory=/opt/browserless
|
WorkingDirectory=/opt/browserless
|
||||||
ExecStart=/opt/browserless/start.sh
|
ExecStart=/opt/browserless/scripts/start.sh
|
||||||
SyslogIdentifier=browserless
|
SyslogIdentifier=browserless
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=default.target
|
WantedBy=default.target
|
||||||
|
@ -30,7 +30,7 @@ msg_info "Installing PostgreSQL"
|
|||||||
$STD apt-get update
|
$STD apt-get update
|
||||||
$STD apt-get install -y postgresql
|
$STD apt-get install -y postgresql
|
||||||
|
|
||||||
cat <<EOF >/etc/postgresql/16/main/pg_hba.conf
|
cat <<EOF >/etc/postgresql/17/main/pg_hba.conf
|
||||||
# PostgreSQL Client Authentication Configuration File
|
# PostgreSQL Client Authentication Configuration File
|
||||||
local all postgres peer
|
local all postgres peer
|
||||||
# TYPE DATABASE USER ADDRESS METHOD
|
# TYPE DATABASE USER ADDRESS METHOD
|
||||||
@ -49,7 +49,7 @@ host replication all 127.0.0.1/32 scram-sha-256
|
|||||||
host replication all ::1/128 scram-sha-256
|
host replication all ::1/128 scram-sha-256
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
cat <<EOF >/etc/postgresql/16/main/postgresql.conf
|
cat <<EOF >/etc/postgresql/17/main/postgresql.conf
|
||||||
# -----------------------------
|
# -----------------------------
|
||||||
# PostgreSQL configuration file
|
# PostgreSQL configuration file
|
||||||
# -----------------------------
|
# -----------------------------
|
||||||
@ -58,10 +58,10 @@ cat <<EOF >/etc/postgresql/16/main/postgresql.conf
|
|||||||
# FILE LOCATIONS
|
# FILE LOCATIONS
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
|
|
||||||
data_directory = '/var/lib/postgresql/16/main'
|
data_directory = '/var/lib/postgresql/17/main'
|
||||||
hba_file = '/etc/postgresql/16/main/pg_hba.conf'
|
hba_file = '/etc/postgresql/17/main/pg_hba.conf'
|
||||||
ident_file = '/etc/postgresql/16/main/pg_ident.conf'
|
ident_file = '/etc/postgresql/17/main/pg_ident.conf'
|
||||||
external_pid_file = '/var/run/postgresql/16-main.pid'
|
external_pid_file = '/var/run/postgresql/17-main.pid'
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
# CONNECTIONS AND AUTHENTICATION
|
# CONNECTIONS AND AUTHENTICATION
|
||||||
@ -107,7 +107,7 @@ log_timezone = 'Etc/UTC'
|
|||||||
# PROCESS TITLE
|
# PROCESS TITLE
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
|
|
||||||
cluster_name = '16/main'
|
cluster_name = '17/main'
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
# CLIENT CONNECTION DEFAULTS
|
# CLIENT CONNECTION DEFAULTS
|
||||||
|
@ -39,8 +39,8 @@ msg_ok "Installed Node.js"
|
|||||||
msg_info "Setting up PostgreSQL"
|
msg_info "Setting up PostgreSQL"
|
||||||
DB_NAME=ziplinedb
|
DB_NAME=ziplinedb
|
||||||
DB_USER=zipline
|
DB_USER=zipline
|
||||||
DB_PASS="$(openssl rand -base64 18 | cut -c1-13)"
|
DB_PASS="$(openssl rand -base64 18 | tr -dc 'a-zA-Z0-9' | cut -c1-13)"
|
||||||
SECRET_KEY="$(openssl rand -base64 32 | cut -c1-24)"
|
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 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 "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';"
|
$STD sudo -u postgres psql -c "ALTER ROLE $DB_USER SET client_encoding TO 'utf8';"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user