Skip to content
This repository was archived by the owner on Jul 23, 2025. It is now read-only.

Commit 20c2fe2

Browse files
committed
chore(json): updates from upstream
1 parent bfa1747 commit 20c2fe2

2 files changed

Lines changed: 13 additions & 13 deletions

File tree

install/bunkerweb-install.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,14 @@ msg_info "Installing Nginx"
2626
wget -qO- https://nginx.org/keys/nginx_signing.key | gpg --dearmor >/usr/share/keyrings/nginx-archive-keyring.gpg
2727
echo "deb [signed-by=/usr/share/keyrings/nginx-archive-keyring.gpg] http://nginx.org/packages/debian $(lsb_release -cs) nginx" >/etc/apt/sources.list.d/nginx.list
2828
$STD apt-get update
29-
$STD apt-get install -y nginx=1.26.2*
29+
$STD apt-get install -y nginx=1.26.3*
3030
msg_ok "Installed Nginx"
3131

3232
RELEASE=$(curl -s https://api.github.com/repos/bunkerity/bunkerweb/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4) }')
3333
msg_info "Installing BunkerWeb v${RELEASE} (Patience)"
3434
curl -fsSL "https://repo.bunkerweb.io/bunkerity/bunkerweb/gpgkey" | gpg --dearmor >/etc/apt/keyrings/bunkerity_bunkerweb-archive-keyring.gpg
3535
echo "deb [signed-by=/etc/apt/keyrings/bunkerity_bunkerweb-archive-keyring.gpg] https://repo.bunkerweb.io/bunkerity/bunkerweb/debian/ bookworm main" >/etc/apt/sources.list.d/bunkerity_bunkerweb.list
3636
$STD apt-get update
37-
export UI_WIZARD=1
3837
$STD apt-get install -y bunkerweb=${RELEASE}
3938
cat <<EOF >/etc/apt/preferences.d/bunkerweb
4039
Package: bunkerweb

install/zipline-install.sh

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -33,14 +33,14 @@ msg_ok "Set up Node.js Repository"
3333
msg_info "Installing Node.js"
3434
$STD apt-get update
3535
$STD apt-get install -y nodejs
36-
$STD npm install -g yarn
36+
$STD npm install -g pnpm
3737
msg_ok "Installed Node.js"
3838

3939
msg_info "Setting up PostgreSQL"
4040
DB_NAME=ziplinedb
4141
DB_USER=zipline
4242
DB_PASS="$(openssl rand -base64 18 | tr -dc 'a-zA-Z0-9' | cut -c1-13)"
43-
SECRET_KEY="$(openssl rand -base64 42 | tr -dc 'a-zA-Z0-9' | cut -c1-13)"
43+
SECRET_KEY="$(openssl rand -base64 42 | tr -dc 'a-zA-Z0-9')"
4444
$STD sudo -u postgres psql -c "CREATE ROLE $DB_USER WITH LOGIN PASSWORD '$DB_PASS';"
4545
$STD sudo -u postgres psql -c "CREATE DATABASE $DB_NAME WITH OWNER $DB_USER ENCODING 'UTF8' TEMPLATE template0;"
4646
$STD sudo -u postgres psql -c "ALTER ROLE $DB_USER SET client_encoding TO 'utf8';"
@@ -60,13 +60,15 @@ wget -q "https://github.com/diced/zipline/archive/refs/tags/v${RELEASE}.zip"
6060
unzip -q v${RELEASE}.zip
6161
mv zipline-${RELEASE} /opt/zipline
6262
cd /opt/zipline
63-
mv .env.local.example .env
64-
sudo sed -i "s|CORE_SECRET=.*|CORE_SECRET=\"$SECRET_KEY\"|" /opt/zipline/.env
65-
sudo sed -i "s|CORE_RETURN_HTTPS=.*|CORE_RETURN_HTTPS=false|" /opt/zipline/.env
66-
sudo sed -i "s|CORE_DATABASE_URL=.*|CORE_DATABASE_URL=\"postgres://$DB_USER:$DB_PASS@localhost:5432/$DB_NAME\"|" /opt/zipline/.env
63+
cat <<EOF >/opt/zipline/.env
64+
DATABASE_URL=postgres://$DB_USER:$DB_PASS@localhost:5432/$DB_NAME
65+
CORE_SECRET=$SECRET_KEY
66+
CORE_HOSTNAME=0.0.0.0
67+
CORE_PORT=3000
6768
CORE_RETURN_HTTPS=false
68-
$STD yarn install
69-
$STD yarn build
69+
EOF
70+
$STD pnpm install
71+
$STD pnpm build
7072
echo "${RELEASE}" >"/opt/${APPLICATION}_version.txt"
7173
msg_ok "Installed Zipline"
7274

@@ -78,18 +80,17 @@ After=network.target
7880
7981
[Service]
8082
WorkingDirectory=/opt/zipline
81-
ExecStart=/usr/bin/yarn start
83+
ExecStart=/usr/bin/pnpm start
8284
Restart=on-failure
8385
8486
[Install]
8587
WantedBy=multi-user.target
8688
EOF
87-
systemctl enable -q --now zipline.service
89+
systemctl enable -q --now zipline
8890
msg_ok "Created Service"
8991

9092
motd_ssh
9193
customize
92-
9394
msg_info "Cleaning up"
9495
$STD apt-get -y autoremove
9596
$STD apt-get -y autoclean

0 commit comments

Comments
 (0)