From ca2325af3ff8d07bdf2c750686c54edcd988a952 Mon Sep 17 00:00:00 2001 From: Valiantsin Leushyts Date: Mon, 9 Nov 2026 15:57:32 +0400 Subject: [PATCH 1/3] feat(ct): add Genealogy family tree archive --- ct/genealogy.sh | 51 ++++++++++++++++++++++++++++++++++++ install/genealogy-install.sh | 44 +++++++++++++++++++++++++++++++ json/genealogy.json | 49 ++++++++++++++++++++++++++++++++++ 3 files changed, 144 insertions(+) create mode 100755 ct/genealogy.sh create mode 100755 install/genealogy-install.sh create mode 100644 json/genealogy.json diff --git a/ct/genealogy.sh b/ct/genealogy.sh new file mode 100755 index 0000000000..50d896160f --- /dev/null +++ b/ct/genealogy.sh @@ -0,0 +1,51 @@ +#!/usr/bin/env bash +_CS_DEFAULT_URL="https://raw.githubusercontent.com/community-scripts/DevScripts/main" +_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: Valentin Levshits (vlevshits) +# License: MIT | https://github.com/community-scripts/DevScripts/raw/main/LICENSE +# Source: https://github.com/vlevshits/genealogy + +APP="Genealogy" +var_tags="${var_tags:-genealogy;family-tree}" +var_cpu="${var_cpu:-2}" +var_ram="${var_ram:-1024}" +var_disk="${var_disk:-8}" +var_os="${var_os:-debian}" +var_version="${var_version:-12}" +var_unprivileged="${var_unprivileged:-1}" + +header_info "$APP" +variables +color +catch_errors + +function update_script() { + header_info + check_container_storage + check_container_resources + + if [[ ! -f /etc/systemd/system/genealogy.service ]]; then + msg_error "No ${APP} Installation Found!" + exit + fi + msg_info "Updating ${APP}" + if [[ -x /usr/local/bin/update ]]; then + /usr/local/bin/update + elif [[ -f /opt/genealogy/scripts/install.sh ]]; then + /opt/genealogy/scripts/install.sh + else + curl -fsSL https://raw.githubusercontent.com/vlevshits/genealogy/main/scripts/install.sh | bash + fi + msg_ok "Updated ${APP}" + exit +} + +start +build_container +description + +msg_ok "Completed Successfully!\n" +echo -e "${CREATING}${GN}${APP} setup has been successfully completed!${CL}" +echo -e "${INFO}${YW} Access it at: ${BL}http://${IP}:80${CL}" diff --git a/install/genealogy-install.sh b/install/genealogy-install.sh new file mode 100755 index 0000000000..eb5a9c5727 --- /dev/null +++ b/install/genealogy-install.sh @@ -0,0 +1,44 @@ +#!/usr/bin/env bash + +# Copyright (c) 2021-2026 community-scripts ORG +# Author: Valentin Levshits (vlevshits) +# License: MIT | https://github.com/community-scripts/DevScripts/raw/main/LICENSE +# Source: https://github.com/vlevshits/genealogy + +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" +color +verb_ip6 +catch_errors +setting_up_container +network_check +update_os + +msg_info "Installing Dependencies (PostgreSQL 16, curl, jq, openssl)" +$STD apt-get install -y \ + curl \ + tar \ + gzip \ + ca-certificates \ + jq \ + openssl \ + postgresql \ + postgresql-contrib + +# Mark critical packages as manual to safeguard against clean-lxcs autoremove +if command -v apt-mark >/dev/null 2>&1; then + apt-mark manual curl tar gzip ca-certificates jq openssl postgresql postgresql-contrib >/dev/null 2>&1 || true +fi +msg_ok "Installed Dependencies" + +msg_info "Installing Genealogy Family Tree" +$STD bash -c "$(curl -fsSL https://raw.githubusercontent.com/vlevshits/genealogy/main/scripts/install.sh)" +msg_ok "Installed Genealogy Family Tree" + +motd_ssh +customize + +msg_info "Cleaning up" +$STD apt-get -y autoremove +$STD apt-get -y clean +rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* +msg_ok "Cleaned up" diff --git a/json/genealogy.json b/json/genealogy.json new file mode 100644 index 0000000000..232f38b3aa --- /dev/null +++ b/json/genealogy.json @@ -0,0 +1,49 @@ +{ + "name": "Genealogy", + "slug": "genealogy", + "categories": [ + 0 + ], + "date_created": "2026-11-09", + "type": "ct", + "updateable": true, + "privileged": false, + "interface_port": 80, + "documentation": "https://github.com/vlevshits/genealogy", + "website": "https://github.com/vlevshits/genealogy", + "repository": "https://github.com/vlevshits/genealogy", + "architectures": [ + "amd64", + "arm64" + ], + "logo": "https://raw.githubusercontent.com/vlevshits/genealogy/main/frontend/public/icons/icon-192.png", + "description": "Genealogy is a modern, private, self-hosted web application for building, exploring, and preserving a family tree archive with living-person privacy protection, Slavic patronymics, and zero-proxy native port 80 web serving.", + "install_methods": [ + { + "type": "default", + "script": "ct/genealogy.sh", + "config_path": "/etc/genealogy/genealogy.env", + "resources": { + "cpu": 2, + "ram": 1024, + "hdd": 8, + "os": "Debian", + "version": "12" + } + } + ], + "default_credentials": { + "username": "admin", + "password": null + }, + "notes": [ + { + "text": "Open http://:80 in your browser to complete the First-Run Setup Wizard (create admin account, set passkey/password, and name your family tree).", + "type": "info" + }, + { + "text": "To update to the latest release in the future, simply run 'update' inside the container console.", + "type": "info" + } + ] +} From 3d414a24745471361afbfe4284e81444117426b7 Mon Sep 17 00:00:00 2001 From: Valiantsin Leushyts Date: Mon, 9 Nov 2026 16:03:38 +0400 Subject: [PATCH 2/3] fix(ct): set COMMUNITY_SCRIPTS_URL default to fork branch for testing --- ct/genealogy.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ct/genealogy.sh b/ct/genealogy.sh index 50d896160f..7ead73c343 100755 --- a/ct/genealogy.sh +++ b/ct/genealogy.sh @@ -1,5 +1,8 @@ #!/usr/bin/env bash -_CS_DEFAULT_URL="https://raw.githubusercontent.com/community-scripts/DevScripts/main" +_CS_DEFAULT_URL="${COMMUNITY_SCRIPTS_URL:-https://raw.githubusercontent.com/vlevshits/genealogy-scripts/feat/genealogy}" +COMMUNITY_SCRIPTS_URL="${COMMUNITY_SCRIPTS_URL:-$_CS_DEFAULT_URL}" +export COMMUNITY_SCRIPTS_URL + _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 From 47ff2d4ee5c2a7d4f2cba7c73436baaef888b3d8 Mon Sep 17 00:00:00 2001 From: Valiantsin Leushyts Date: Mon, 9 Nov 2026 16:07:40 +0400 Subject: [PATCH 3/3] chore(ct): align scripts strictly with DevScripts AGENTS.md conventions --- ct/genealogy.sh | 6 ++---- install/genealogy-install.sh | 20 ++++---------------- 2 files changed, 6 insertions(+), 20 deletions(-) diff --git a/ct/genealogy.sh b/ct/genealogy.sh index 7ead73c343..34fbb6d8b4 100755 --- a/ct/genealogy.sh +++ b/ct/genealogy.sh @@ -1,8 +1,5 @@ #!/usr/bin/env bash -_CS_DEFAULT_URL="${COMMUNITY_SCRIPTS_URL:-https://raw.githubusercontent.com/vlevshits/genealogy-scripts/feat/genealogy}" -COMMUNITY_SCRIPTS_URL="${COMMUNITY_SCRIPTS_URL:-$_CS_DEFAULT_URL}" -export COMMUNITY_SCRIPTS_URL - +_CS_DEFAULT_URL="https://raw.githubusercontent.com/community-scripts/DevScripts/main" _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 @@ -17,6 +14,7 @@ var_ram="${var_ram:-1024}" var_disk="${var_disk:-8}" var_os="${var_os:-debian}" var_version="${var_version:-12}" +var_arm64="${var_arm64:-yes}" var_unprivileged="${var_unprivileged:-1}" header_info "$APP" diff --git a/install/genealogy-install.sh b/install/genealogy-install.sh index eb5a9c5727..6522dd3fce 100755 --- a/install/genealogy-install.sh +++ b/install/genealogy-install.sh @@ -13,21 +13,14 @@ setting_up_container network_check update_os -msg_info "Installing Dependencies (PostgreSQL 16, curl, jq, openssl)" -$STD apt-get install -y \ +msg_info "Installing Dependencies" +$STD apt install -y \ curl \ tar \ gzip \ ca-certificates \ jq \ - openssl \ - postgresql \ - postgresql-contrib - -# Mark critical packages as manual to safeguard against clean-lxcs autoremove -if command -v apt-mark >/dev/null 2>&1; then - apt-mark manual curl tar gzip ca-certificates jq openssl postgresql postgresql-contrib >/dev/null 2>&1 || true -fi + openssl msg_ok "Installed Dependencies" msg_info "Installing Genealogy Family Tree" @@ -36,9 +29,4 @@ msg_ok "Installed Genealogy Family Tree" motd_ssh customize - -msg_info "Cleaning up" -$STD apt-get -y autoremove -$STD apt-get -y clean -rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* -msg_ok "Cleaned up" +cleanup_lxc