Compare commits

..
Author SHA1 Message Date
push-app-to-main[bot] 1419ade972 Add hindsight (ct) 2026-11-29 08:07:38 +00:00
7 changed files with 2 additions and 460 deletions

No files matched your search

+2 -12
View File
@@ -592,21 +592,11 @@ Exercise vigilance regarding copycat or coat-tailing sites that seek to exploit
## 2026-11-29
### 🆕 New Scripts
- Hindsight [@andy-vdg](https://github.com/andy-vdg) ([#19179](https://github.com/community-scripts/ProxmoxVE/pull/19179))
- CloudPanel [@TaiKamilla](https://github.com/TaiKamilla) ([#19176](https://github.com/community-scripts/ProxmoxVE/pull/19176))
- Organizr [@MickLesk](https://github.com/MickLesk) ([#19178](https://github.com/community-scripts/ProxmoxVE/pull/19178))
- NocoBase [@MickLesk](https://github.com/MickLesk) ([#19177](https://github.com/community-scripts/ProxmoxVE/pull/19177))
### 💾 Core
- security: stop emptying root's password in containers [@MickLesk](https://github.com/MickLesk) ([core#326](https://github.com/community-scripts/core/pull/326))
- setup_nodejs: network timeouts for every yarn, retries for npm and pnpm [@MickLesk](https://github.com/MickLesk) ([core#321](https://github.com/community-scripts/core/pull/321))
- incus: find an Incus VM's address on a LAN bridge without its agent [@MickLesk](https://github.com/MickLesk) ([core#324](https://github.com/community-scripts/core/pull/324))
- Base packages: mirror fallback for deb822 Ubuntu and security-less mirrors [@MickLesk](https://github.com/MickLesk) ([core#323](https://github.com/community-scripts/core/pull/323))
- incus: find an Incus VM's address on a LAN bridge without its agent [@MickLesk](https://github.com/MickLesk) ([core#324](https://github.com/community-scripts/core/pull/324))
- Give a tool's bare exit 1 the code the table has for it [@MickLesk](https://github.com/MickLesk) ([core#320](https://github.com/community-scripts/core/pull/320))
- Let an early base_settings pass on Incus [@MickLesk](https://github.com/MickLesk) ([core#325](https://github.com/community-scripts/core/pull/325))
- setup_nodejs: network timeouts for every yarn, retries for npm and pnpm [@MickLesk](https://github.com/MickLesk) ([core#321](https://github.com/community-scripts/core/pull/321))
## 2026-11-28
-62
View File
@@ -1,62 +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: TaiKamilla
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
# Source: https://www.cloudpanel.io/
APP="CloudPanel"
var_tags="${var_tags:-webserver;hosting;php}"
var_cpu="${var_cpu:-2}"
var_ram="${var_ram:-2048}"
var_disk="${var_disk:-20}"
var_os="${var_os:-debian}"
var_version="${var_version:-13}"
var_arm64="${var_arm64:-yes}"
var_unprivileged="${var_unprivileged:-1}"
export var_db_engine="${var_db_engine:-}"
export var_admin_user="${var_admin_user:-}"
export var_admin_email="${var_admin_email:-}"
export var_admin_pass="${var_admin_pass:-}"
header_info "$APP"
variables
color
catch_errors
function update_script() {
header_info
check_container_storage
check_container_resources
if [[ ! -f /home/clp/htdocs/app/data/db.sq3 ]]; then
msg_error "No ${APP} Installation Found!"
exit
fi
$STD apt update
if [[ -z "$(apt list --upgradable 2>/dev/null | grep '/')" ]]; then
msg_ok "No update required. ${APP} is already up to date"
exit
fi
msg_info "Updating CloudPanel"
$STD clp-update
$STD apt -y --with-new-pkgs --allow-downgrades upgrade
msg_ok "Updated CloudPanel"
msg_ok "Updated successfully!"
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}https://${IP}:8443${CL}"
echo -e "${INFO}${YW}Admin credentials: ~/cloudpanel.creds (inside the container)${CL}"
-77
View File
@@ -1,77 +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/nocobase/nocobase
APP="NocoBase"
var_tags="${var_tags:-no-code;low-code;database}"
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}"
export var_admin_email="${var_admin_email:-}"
export var_admin_pass="${var_admin_pass:-}"
header_info "$APP"
variables
color
catch_errors
function update_script() {
header_info
check_container_storage
check_container_resources
if [[ ! -f /opt/nocobase/node_modules/@nocobase/app/package.json ]]; then
msg_error "No ${APP} Installation Found!"
exit
fi
CURRENT=$(node -p "require('/opt/nocobase/node_modules/@nocobase/app/package.json').version")
RELEASE=$(npm view @nocobase/app version 2>/dev/null)
if [[ -z "$RELEASE" ]]; then
msg_error "Could not determine the latest NocoBase version from npm"
exit 1
fi
if [[ "$RELEASE" == "$CURRENT" ]]; then
msg_ok "No update available: NocoBase (${CURRENT})"
exit
fi
NODE_VERSION="22" NODE_MODULE="yarn" setup_nodejs
msg_info "Stopping NocoBase"
systemctl stop nocobase
msg_ok "Stopped NocoBase"
msg_info "Updating NocoBase from ${CURRENT} to ${RELEASE}"
cd /opt/nocobase
$STD npm pkg set "dependencies.@nocobase/app=${RELEASE}"
$STD yarn install --production
$STD yarn nocobase upgrade --skip-code-update
$STD yarn cache clean
msg_ok "Updated NocoBase from ${CURRENT} to ${RELEASE}"
msg_info "Starting NocoBase"
systemctl start nocobase
msg_ok "Started NocoBase"
msg_ok "Updated successfully!"
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}:13000${CL}"
echo -e "${INFO}${YW}Root login: /opt/nocobase_data/.env (inside the container)${CL}"
-66
View File
@@ -1,66 +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/causefx/Organizr
APP="Organizr"
var_tags="${var_tags:-dashboard;sso}"
var_cpu="${var_cpu:-1}"
var_ram="${var_ram:-512}"
var_disk="${var_disk:-3}"
var_os="${var_os:-debian}"
var_version="${var_version:-13}"
var_arm64="${var_arm64:-yes}"
var_unprivileged="${var_unprivileged:-1}"
export var_admin_user="${var_admin_user:-}"
export var_admin_email="${var_admin_email:-}"
export var_admin_pass="${var_admin_pass:-}"
header_info "$APP"
variables
color
catch_errors
function update_script() {
header_info
check_container_storage
check_container_resources
if [[ ! -d /opt/organizr ]]; then
msg_error "No ${APP} Installation Found!"
exit
fi
if check_for_gh_branch "organizr" "causefx/Organizr" "v2-master"; then
msg_info "Stopping Organizr"
systemctl stop nginx php8.4-fpm
msg_ok "Stopped Organizr"
CLEAN_INSTALL=1 fetch_and_deploy_gh_branch "organizr" "causefx/Organizr" "v2-master"
msg_info "Configuring Organizr"
ln -sfn /opt/organizr_data/data /opt/organizr/data
chown -R www-data:www-data /opt/organizr
msg_ok "Configured Organizr"
msg_info "Starting Organizr"
systemctl start php8.4-fpm nginx
msg_ok "Started Organizr"
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}${CL}"
echo -e "${INFO}${YW}Admin credentials: /opt/organizr_data/.env (inside the container)${CL}"
-67
View File
@@ -1,67 +0,0 @@
#!/usr/bin/env bash
# Copyright (c) 2021-2026 community-scripts ORG
# Author: TaiKamilla
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
# Source: https://www.cloudpanel.io/
source /dev/stdin <<<"$FUNCTIONS_FILE_PATH"
color
verb_ip6
catch_errors
setting_up_container
network_check
update_os
var_db_engine="${var_db_engine:-MARIADB_12.3}"
if [[ ! "$var_db_engine" =~ ^(MARIADB_12\.3|MARIADB_11\.8|MYSQL_8\.4)$ ]]; then
msg_warn "Unsupported database engine '${var_db_engine}', using MARIADB_12.3"
var_db_engine="MARIADB_12.3"
fi
var_admin_user="${var_admin_user:-admin}"
if [[ ! "$var_admin_user" =~ ^[A-Za-z0-9._-]{3,}$ ]]; then
msg_warn "Invalid admin user '${var_admin_user}' (3+ letters, digits, dots, dashes or underscores), using admin"
var_admin_user="admin"
fi
var_admin_email="${var_admin_email:-admin@example.com}"
if [[ ! "$var_admin_email" =~ ^[^@[:space:]]+@[^@[:space:]]+\.[^@[:space:]]+$ ]]; then
msg_warn "Invalid admin email '${var_admin_email}', using admin@example.com"
var_admin_email="admin@example.com"
fi
var_admin_pass="${var_admin_pass:-$(random_password 20)}"
confirm_external_installer "https://www.cloudpanel.io/" "https://installer.cloudpanel.io/ce/v2/install.sh"
msg_info "Installing Dependencies"
$STD apt install -y openssh-server wget
msg_ok "Installed Dependencies"
msg_info "Installing CloudPanel (Patience)"
curl_with_retry "https://installer.cloudpanel.io/ce/v2/install.sh" /tmp/cloudpanel-install.sh
if ! sha256sum -c --status <<<"8146dbe0a488e7088b04071b0c34d59aa0ab1fe9dcec382d395fd155c9e6c476 /tmp/cloudpanel-install.sh"; then
msg_error "The CloudPanel installer does not match the checksum published in its documentation"
exit 1
fi
# SWAP=false: dphys-swapfile cannot manage swap inside a container
$STD env HOME=/root SWAP=false DB_ENGINE="$var_db_engine" bash /tmp/cloudpanel-install.sh
rm -f /tmp/cloudpanel-install.sh
systemctl disable -q --now chrony
if systemctl is-failed -q chrony; then
systemctl reset-failed chrony
fi
msg_ok "Installed CloudPanel"
msg_info "Creating CloudPanel Admin"
$STD clpctl user:add --userName="$var_admin_user" --email="$var_admin_email" --firstName="Admin" --lastName="CloudPanel" --password="$var_admin_pass" --role="admin" --timezone="UTC" --status="1"
cat <<EOF >~/cloudpanel.creds
CloudPanel Admin
URL: https://${LOCAL_IP}:8443
Username: ${var_admin_user}
Password: ${var_admin_pass}
EOF
chmod 600 ~/cloudpanel.creds
msg_ok "Created CloudPanel Admin"
motd_ssh
customize
cleanup_lxc
-74
View File
@@ -1,74 +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/nocobase/nocobase
source /dev/stdin <<<"$FUNCTIONS_FILE_PATH"
color
verb_ip6
catch_errors
setting_up_container
network_check
update_os
NODE_VERSION="22" NODE_MODULE="yarn" setup_nodejs
PG_VERSION="17" setup_postgresql
PG_DB_NAME="nocobase" PG_DB_USER="nocobase" PG_DB_CREDS_FILE="/dev/null" setup_postgresql_db
msg_info "Installing NocoBase"
NOCOBASE_VERSION="${var_appversion:-latest}"
cd /opt
$STD npx -y "create-nocobase-app@${NOCOBASE_VERSION#v}" nocobase --skip-dev-dependencies -d postgres
mkdir -p /opt/nocobase_data/storage
cat <<EOF >/opt/nocobase_data/.env
APP_ENV=production
APP_KEY=$(random_password 64)
APP_PORT=13000
API_BASE_PATH=/api/
STORAGE_PATH=/opt/nocobase_data/storage
DB_LOGGING=off
DB_DIALECT=postgres
DB_HOST=localhost
DB_PORT=5432
DB_DATABASE=nocobase
DB_USER=nocobase
DB_PASSWORD=${PG_DB_PASS}
INIT_ROOT_EMAIL=${var_admin_email:-admin@nocobase.com}
INIT_ROOT_PASSWORD=${var_admin_pass:-$(random_password)}
INIT_ROOT_NICKNAME=Super Admin
INIT_ROOT_USERNAME=nocobase
EOF
chmod 600 /opt/nocobase_data/.env
rm -rf /opt/nocobase/storage
ln -sf /opt/nocobase_data/.env /opt/nocobase/.env
cd /opt/nocobase
$STD yarn install --production
$STD yarn nocobase install --lang=en-US
$STD yarn cache clean
msg_ok "Installed NocoBase"
msg_info "Creating Service"
cat <<EOF >/etc/systemd/system/nocobase.service
[Unit]
Description=NocoBase
After=network.target postgresql.service
Wants=postgresql.service
[Service]
Type=simple
WorkingDirectory=/opt/nocobase
ExecStart=/usr/bin/yarn start
Restart=always
RestartSec=5
[Install]
WantedBy=multi-user.target
EOF
systemctl enable -q --now nocobase
msg_ok "Created Service"
motd_ssh
customize
cleanup_lxc
-102
View File
@@ -1,102 +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/causefx/Organizr
source /dev/stdin <<<"$FUNCTIONS_FILE_PATH"
color
verb_ip6
catch_errors
setting_up_container
network_check
update_os
var_admin_user="${var_admin_user:-admin}"
var_admin_email="${var_admin_email:-admin@example.com}"
var_admin_pass="${var_admin_pass:-$(random_password 16)}"
msg_info "Installing Dependencies"
$STD apt install -y nginx
msg_ok "Installed Dependencies"
PHP_VERSION="8.4" PHP_FPM="YES" PHP_MODULE="ldap" setup_php
fetch_and_deploy_gh_branch "organizr" "causefx/Organizr" "v2-master"
msg_info "Configuring Nginx"
mkdir -p /opt/organizr_data/{data,db}
ln -sfn /opt/organizr_data/data /opt/organizr/data
chown -R www-data:www-data /opt/organizr /opt/organizr_data/data /opt/organizr_data/db
PHP_SOCK=$(get_php_fpm_socket)
cat <<EOF >/etc/nginx/sites-available/organizr
server {
listen 80 default_server;
listen [::]:80 default_server;
server_name _;
root /opt/organizr;
index index.html index.htm index.php;
client_max_body_size 0;
server_tokens off;
location ~ /\.git {
deny all;
}
location ~ /\.env {
deny all;
}
location ~ /\.ht {
deny all;
}
location / {
try_files \$uri \$uri/ /index.html /index.php?\$args =404;
}
location /api/v2 {
try_files \$uri /api/v2/index.php\$is_args\$args;
}
location ~ \.php\$ {
fastcgi_split_path_info ^(.+\.php)(/.+)\$;
fastcgi_pass unix:${PHP_SOCK};
fastcgi_index index.php;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME \$document_root\$fastcgi_script_name;
fastcgi_buffers 32 32k;
fastcgi_buffer_size 32k;
}
}
EOF
nginx_enable_site "organizr"
msg_ok "Configured Nginx"
msg_info "Setting up Organizr"
REG_PASS=$(random_password 16)
$STD curl -fsS -X POST http://127.0.0.1/api/v2/wizard \
--data-urlencode "license=personal" \
--data-urlencode "username=${var_admin_user}" \
--data-urlencode "email=${var_admin_email}" \
--data-urlencode "password=${var_admin_pass}" \
--data-urlencode "hashKey=$(random_password 32)" \
--data-urlencode "registrationPassword=${REG_PASS}" \
--data-urlencode "api=$(random_password 20)" \
--data-urlencode "driver=sqlite3" \
--data-urlencode "dbName=organizr" \
--data-urlencode "dbPath=/opt/organizr_data/db/"
cat <<EOF >/opt/organizr_data/.env
ORGANIZR_ADMIN_USER=${var_admin_user}
ORGANIZR_ADMIN_EMAIL=${var_admin_email}
ORGANIZR_ADMIN_PASSWORD=${var_admin_pass}
ORGANIZR_REGISTRATION_PASSWORD=${REG_PASS}
EOF
chmod 600 /opt/organizr_data/.env
cat <<EOF >/etc/cron.d/organizr
* * * * * www-data php /opt/organizr/cron.php >/dev/null 2>&1
EOF
systemctl enable -q --now cron
msg_ok "Set up Organizr"
motd_ssh
customize
cleanup_lxc