mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-10-03 15:40:18 +00:00
Compare commits
4
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
fd5005ce17 | ||
|
|
057095406c | ||
|
|
76f17ddf67 | ||
|
|
6e63fb3e5f |
@@ -549,22 +549,6 @@ Exercise vigilance regarding copycat or coat-tailing sites that seek to exploit
|
||||
|
||||
</details>
|
||||
|
||||
## 2026-10-03
|
||||
|
||||
### 🆕 New Scripts
|
||||
|
||||
- Keeper.sh ([#17659](https://github.com/community-scripts/ProxmoxVE/pull/17659))
|
||||
|
||||
### 🚀 Updated Scripts
|
||||
|
||||
- #### 🐞 Bug Fixes
|
||||
|
||||
- fix(nginxproxymanager): clean yarn cache after builds to prevent disk growth [@PsycoStea](https://github.com/PsycoStea) ([#17653](https://github.com/community-scripts/ProxmoxVE/pull/17653))
|
||||
|
||||
- #### 🔧 Refactor
|
||||
|
||||
- Refactor/core qol adoption [@MickLesk](https://github.com/MickLesk) ([#17655](https://github.com/community-scripts/ProxmoxVE/pull/17655))
|
||||
|
||||
## 2026-10-02
|
||||
|
||||
### 🚀 Updated Scripts
|
||||
@@ -580,10 +564,6 @@ Exercise vigilance regarding copycat or coat-tailing sites that seek to exploit
|
||||
- NPM: Refactor / Fix npm openresty user and certbot version [@MickLesk](https://github.com/MickLesk) ([#17649](https://github.com/community-scripts/ProxmoxVE/pull/17649))
|
||||
- several scripts: use the release helpers instead of hand-rolled version checks and downloads [@MickLesk](https://github.com/MickLesk) ([#17625](https://github.com/community-scripts/ProxmoxVE/pull/17625))
|
||||
|
||||
### 💾 Core
|
||||
|
||||
- QoL: message blocks, clean-install keep list, password helper, network limits [@MickLesk](https://github.com/MickLesk) ([core#61](https://github.com/community-scripts/core/pull/61))
|
||||
|
||||
## 2026-10-01
|
||||
|
||||
### 🚀 Updated Scripts
|
||||
|
||||
@@ -1,73 +0,0 @@
|
||||
#!/usr/bin/env bash
|
||||
_cs_boot="${COMMUNITY_SCRIPTS_CORE_DIR:-$(dirname "${BASH_SOURCE[0]}")/../../core}/core/build.func"
|
||||
source "$_cs_boot" 2>/dev/null || source <(curl -fsSL "${COMMUNITY_SCRIPTS_CORE_URL:-https://raw.githubusercontent.com/community-scripts/core/main}/core/build.func")
|
||||
# Copyright (c) 2021-2026 community-scripts ORG
|
||||
# Author: MickLesk (CanbiZ)
|
||||
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
|
||||
# Source: https://github.com/ridafkih/keeper.sh
|
||||
|
||||
APP="Keeper"
|
||||
var_tags="${var_tags:-calendar;sync}"
|
||||
var_cpu="${var_cpu:-2}"
|
||||
var_ram="${var_ram:-2048}"
|
||||
var_disk="${var_disk:-8}"
|
||||
var_os="${var_os:-debian}"
|
||||
var_version="${var_version:-13}"
|
||||
var_arm64="${var_arm64:-yes}"
|
||||
var_unprivileged="${var_unprivileged:-1}"
|
||||
|
||||
header_info "$APP"
|
||||
variables
|
||||
color
|
||||
catch_errors
|
||||
|
||||
function update_script() {
|
||||
header_info
|
||||
check_container_storage
|
||||
check_container_resources
|
||||
|
||||
if [[ ! -d /opt/keeper ]]; then
|
||||
msg_error "No ${APP} Installation Found!"
|
||||
exit
|
||||
fi
|
||||
|
||||
if check_for_gh_release "keeper" "ridafkih/keeper.sh"; then
|
||||
msg_info "Stopping Keeper"
|
||||
systemctl stop keeper-web keeper-worker keeper-cron keeper-api
|
||||
msg_ok "Stopped Keeper"
|
||||
|
||||
msg_info "Updating Bun"
|
||||
$STD bun upgrade
|
||||
msg_ok "Updated Bun"
|
||||
|
||||
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "keeper" "ridafkih/keeper.sh" "tarball"
|
||||
|
||||
msg_info "Building Keeper"
|
||||
cd /opt/keeper
|
||||
$STD bun install --frozen-lockfile
|
||||
$STD bun run --cwd services/api build
|
||||
$STD bun run --cwd services/cron build
|
||||
$STD bun run --cwd services/worker build
|
||||
$STD bun run --cwd applications/web build
|
||||
msg_ok "Built Keeper"
|
||||
|
||||
msg_info "Migrating Keeper Database"
|
||||
$STD bun --env-file=/opt/keeper_data/.env packages/database/scripts/migrate.ts
|
||||
msg_ok "Migrated Keeper Database"
|
||||
|
||||
msg_info "Starting Keeper"
|
||||
systemctl start keeper-api keeper-cron keeper-worker keeper-web
|
||||
msg_ok "Started Keeper"
|
||||
msg_ok "Updated successfully!"
|
||||
fi
|
||||
exit
|
||||
}
|
||||
|
||||
start
|
||||
build_container
|
||||
description
|
||||
|
||||
msg_ok "Completed Successfully!\n"
|
||||
echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}"
|
||||
echo -e "${INFO}${YW}Access it using the following URL:${CL}"
|
||||
echo -e "${GATEWAY}${BGN}http://${IP}:3000${CL}"
|
||||
@@ -216,7 +216,6 @@ EOF
|
||||
$STD yarn install --network-timeout 600000
|
||||
$STD yarn locale-compile
|
||||
$STD yarn build
|
||||
$STD yarn cache clean
|
||||
cp -r /opt/nginxproxymanager/frontend/dist/* /app/frontend
|
||||
cp -r /opt/nginxproxymanager/frontend/public/images/* /app/frontend/images
|
||||
msg_ok "Built Frontend"
|
||||
@@ -242,7 +241,6 @@ EOF
|
||||
sed -i 's/"client": "sqlite3"/"client": "better-sqlite3"/' /app/config/production.json
|
||||
cd /app
|
||||
$STD yarn install --network-timeout 600000
|
||||
$STD yarn cache clean
|
||||
msg_ok "Initialized Backend"
|
||||
|
||||
msg_info "Starting Services"
|
||||
|
||||
@@ -1,144 +0,0 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# Copyright (c) 2021-2026 community-scripts ORG
|
||||
# Author: MickLesk (CanbiZ)
|
||||
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
|
||||
# Source: https://github.com/ridafkih/keeper.sh
|
||||
|
||||
source /dev/stdin <<<"$FUNCTIONS_FILE_PATH"
|
||||
color
|
||||
verb_ip6
|
||||
catch_errors
|
||||
setting_up_container
|
||||
network_check
|
||||
update_os
|
||||
|
||||
msg_info "Installing Dependencies"
|
||||
$STD apt install -y \
|
||||
redis-server \
|
||||
unzip
|
||||
msg_ok "Installed Dependencies"
|
||||
|
||||
PG_VERSION="17" setup_postgresql
|
||||
PG_DB_NAME="keeper" PG_DB_USER="keeper" setup_postgresql_db
|
||||
|
||||
msg_info "Installing Bun"
|
||||
export BUN_INSTALL="/root/.bun"
|
||||
curl -fsSL https://bun.sh/install | $STD bash
|
||||
ln -sf /root/.bun/bin/bun /usr/local/bin/bun
|
||||
ln -sf /root/.bun/bin/bunx /usr/local/bin/bunx
|
||||
msg_ok "Installed Bun"
|
||||
|
||||
fetch_and_deploy_gh_release "keeper" "ridafkih/keeper.sh" "tarball"
|
||||
|
||||
msg_info "Building Keeper"
|
||||
cd /opt/keeper
|
||||
$STD bun install --frozen-lockfile
|
||||
$STD bun run --cwd services/api build
|
||||
$STD bun run --cwd services/cron build
|
||||
$STD bun run --cwd services/worker build
|
||||
$STD bun run --cwd applications/web build
|
||||
msg_ok "Built Keeper"
|
||||
|
||||
msg_info "Configuring Keeper"
|
||||
mkdir -p /opt/keeper_data
|
||||
cat <<EOF >/opt/keeper_data/.env
|
||||
ENV=production
|
||||
DATABASE_URL=postgresql://keeper:${PG_DB_PASS}@127.0.0.1:5432/keeper
|
||||
REDIS_URL=redis://127.0.0.1:6379
|
||||
BETTER_AUTH_URL=http://${LOCAL_IP}:3000
|
||||
BETTER_AUTH_SECRET=$(openssl rand -base64 32)
|
||||
ENCRYPTION_KEY=$(openssl rand -base64 32)
|
||||
TRUSTED_ORIGINS=http://${LOCAL_IP}:3000
|
||||
API_PORT=3001
|
||||
PORT=3000
|
||||
VITE_API_URL=http://127.0.0.1:3001
|
||||
COMMERCIAL_MODE=false
|
||||
WORKER_JOB_QUEUE_ENABLED=true
|
||||
GOOGLE_CLIENT_ID=
|
||||
GOOGLE_CLIENT_SECRET=
|
||||
MICROSOFT_CLIENT_ID=
|
||||
MICROSOFT_CLIENT_SECRET=
|
||||
EOF
|
||||
chmod 600 /opt/keeper_data/.env
|
||||
msg_ok "Configured Keeper"
|
||||
|
||||
msg_info "Migrating Keeper Database"
|
||||
$STD bun --env-file=/opt/keeper_data/.env packages/database/scripts/migrate.ts
|
||||
msg_ok "Migrated Keeper Database"
|
||||
|
||||
msg_info "Creating Services"
|
||||
cat <<EOF >/etc/systemd/system/keeper-api.service
|
||||
[Unit]
|
||||
Description=Keeper API
|
||||
After=network.target postgresql.service redis-server.service
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=root
|
||||
WorkingDirectory=/opt/keeper
|
||||
EnvironmentFile=/opt/keeper_data/.env
|
||||
ExecStart=/usr/local/bin/bun /opt/keeper/services/api/dist/index.js
|
||||
Restart=on-failure
|
||||
RestartSec=5
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
EOF
|
||||
cat <<EOF >/etc/systemd/system/keeper-cron.service
|
||||
[Unit]
|
||||
Description=Keeper Cron
|
||||
After=network.target postgresql.service redis-server.service
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=root
|
||||
WorkingDirectory=/opt/keeper
|
||||
EnvironmentFile=/opt/keeper_data/.env
|
||||
ExecStart=/usr/local/bin/bun /opt/keeper/services/cron/dist/index.js
|
||||
Restart=on-failure
|
||||
RestartSec=5
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
EOF
|
||||
cat <<EOF >/etc/systemd/system/keeper-worker.service
|
||||
[Unit]
|
||||
Description=Keeper Worker
|
||||
After=network.target postgresql.service redis-server.service
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=root
|
||||
WorkingDirectory=/opt/keeper
|
||||
EnvironmentFile=/opt/keeper_data/.env
|
||||
ExecStart=/usr/local/bin/bun /opt/keeper/services/worker/dist/index.js
|
||||
Restart=on-failure
|
||||
RestartSec=5
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
EOF
|
||||
cat <<EOF >/etc/systemd/system/keeper-web.service
|
||||
[Unit]
|
||||
Description=Keeper Web
|
||||
After=network.target keeper-api.service
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=root
|
||||
WorkingDirectory=/opt/keeper/applications/web
|
||||
EnvironmentFile=/opt/keeper_data/.env
|
||||
ExecStart=/usr/local/bin/bun /opt/keeper/applications/web/dist/server-entry/index.js
|
||||
Restart=on-failure
|
||||
RestartSec=5
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
EOF
|
||||
systemctl enable -q --now keeper-api keeper-cron keeper-worker keeper-web
|
||||
msg_ok "Created Services"
|
||||
|
||||
motd_ssh
|
||||
customize
|
||||
cleanup_lxc
|
||||
@@ -138,7 +138,6 @@ sed -E -i 's/"node-sass" *: *"([^"]*)"/"sass": "\1"/g' package.json
|
||||
$STD yarn install --network-timeout 600000
|
||||
$STD yarn locale-compile
|
||||
$STD yarn build
|
||||
$STD yarn cache clean
|
||||
cp -r /opt/nginxproxymanager/frontend/dist/* /app/frontend
|
||||
cp -r /opt/nginxproxymanager/frontend/public/images/* /app/frontend/images
|
||||
msg_ok "Built Frontend"
|
||||
@@ -163,7 +162,6 @@ EOF
|
||||
fi
|
||||
cd /app
|
||||
$STD yarn install --network-timeout 600000
|
||||
$STD yarn cache clean
|
||||
msg_ok "Initialized Backend"
|
||||
|
||||
msg_info "Creating Service"
|
||||
|
||||
Reference in New Issue
Block a user