Compare commits

...
Author SHA1 Message Date
github-actions[bot] 01894f08d7 Update CHANGELOG.md 2026-11-29 09:18:25 +00:00
push-app-to-main[bot] 277f04e354 Add organizr (ct) (#19178)
Co-authored-by: push-app-to-main[bot] <203845782+push-app-to-main[bot]@users.noreply.github.com>
2026-11-29 10:18:06 +01:00
community-scripts-pr-app[bot]andgithub-actions[bot] 582e92ed5b Update CHANGELOG.md (#19185)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2026-11-29 09:17:59 +00:00
push-app-to-main[bot] aa56466bc5 Add nocobase (ct) (#19177)
Co-authored-by: push-app-to-main[bot] <203845782+push-app-to-main[bot]@users.noreply.github.com>
2026-11-29 10:17:34 +01:00
community-scripts-pr-app[bot]andgithub-actions[bot] df16c8859e Update CHANGELOG.md (#19183)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2026-11-29 08:23:15 +00:00
community-scripts-pr-app[bot]andgithub-actions[bot] c7d766aee5 Update CHANGELOG.md (#19182)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2026-11-29 08:23:00 +00:00
community-scripts-pr-app[bot]andgithub-actions[bot] 3c57bf7be4 Update CHANGELOG.md (#19181)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2026-11-29 08:22:32 +00:00
5 changed files with 327 additions and 1 deletions

No files matched your search

+8 -1
View File
@@ -592,9 +592,16 @@ Exercise vigilance regarding copycat or coat-tailing sites that seek to exploit
## 2026-11-29
### 🆕 New Scripts
- 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
- 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))
- Let an early base_settings pass on Incus [@MickLesk](https://github.com/MickLesk) ([core#325](https://github.com/community-scripts/core/pull/325))
- 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))
- 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))
- 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))
+77
View File
@@ -0,0 +1,77 @@
#!/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
@@ -0,0 +1,66 @@
#!/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}"
+74
View File
@@ -0,0 +1,74 @@
#!/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
@@ -0,0 +1,102 @@
#!/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