From 9aa319783e8a6306214ebf3aa783917a6968d8ff Mon Sep 17 00:00:00 2001 From: Tobias <96661824+CrazyWolf13@users.noreply.github.com> Date: Fri, 14 Nov 2025 22:15:08 +0100 Subject: [PATCH 01/10] Update database schema setup in install script Replaced environment variable exports with psql command to build database schema. --- install/domain-locker-install.sh | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/install/domain-locker-install.sh b/install/domain-locker-install.sh index aa50e3a2d..a97bc1716 100644 --- a/install/domain-locker-install.sh +++ b/install/domain-locker-install.sh @@ -45,10 +45,7 @@ npm run build msg_info "Built Domain-Locker" msg_info "Building Database schema" -export DOMAIN_LOCKER_DB_NAME=${PG_DB_NAME} -export DOMAIN_LOCKER_DB_USER=${PG_DB_USER} -export DOMAIN_LOCKER_DB_PASSWORD=${PG_DB_PASS} -bash /opt/domain-locker/db/setup-postgres.sh +psql -h "$DL_PG_HOST" -p "$DL_PG_PORT" -U "$DL_PG_USER" -d "$DL_PG_NAME" -f "/opt/domain-locker/db/schema.sql" msg_ok "Built Database schema" msg_info "Creating Service" From d8a39035b2e80f12eb7da9bb85aac6d2354729e0 Mon Sep 17 00:00:00 2001 From: Tobias <96661824+CrazyWolf13@users.noreply.github.com> Date: Fri, 14 Nov 2025 22:33:27 +0100 Subject: [PATCH 02/10] fix pgpassword --- install/domain-locker-install.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/install/domain-locker-install.sh b/install/domain-locker-install.sh index a97bc1716..2e4869bef 100644 --- a/install/domain-locker-install.sh +++ b/install/domain-locker-install.sh @@ -45,6 +45,7 @@ npm run build msg_info "Built Domain-Locker" msg_info "Building Database schema" +export PGPASSWORD="$DL_PG_PASSWORD" psql -h "$DL_PG_HOST" -p "$DL_PG_PORT" -U "$DL_PG_USER" -d "$DL_PG_NAME" -f "/opt/domain-locker/db/schema.sql" msg_ok "Built Database schema" From e4451694f41e5c4946f9905e2957182fed0fefe3 Mon Sep 17 00:00:00 2001 From: Tobias <96661824+CrazyWolf13@users.noreply.github.com> Date: Sat, 15 Nov 2025 00:04:57 +0100 Subject: [PATCH 03/10] Update GitHub repository reference in install script --- install/domain-locker-install.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/install/domain-locker-install.sh b/install/domain-locker-install.sh index 2e4869bef..17dcd1a47 100644 --- a/install/domain-locker-install.sh +++ b/install/domain-locker-install.sh @@ -17,7 +17,7 @@ PG_VERSION="17" setup_postgresql PG_DB_NAME="domainlocker" PG_DB_USER="domainlocker" setup_postgresql_db NODE_VERSION="22" setup_nodejs -fetch_and_deploy_gh_release "domain-locker" "CrazyWolf13/domain-locker" +fetch_and_deploy_gh_release "domain-locker" "Lissy93/domain-locker" msg_info "Installing Modules (patience)" cd /opt/domain-locker @@ -41,12 +41,12 @@ EOF set -a source /opt/domain-locker.env set +a -npm run build +$STD npm run build msg_info "Built Domain-Locker" msg_info "Building Database schema" export PGPASSWORD="$DL_PG_PASSWORD" -psql -h "$DL_PG_HOST" -p "$DL_PG_PORT" -U "$DL_PG_USER" -d "$DL_PG_NAME" -f "/opt/domain-locker/db/schema.sql" +$STD psql -h "$DL_PG_HOST" -p "$DL_PG_PORT" -U "$DL_PG_USER" -d "$DL_PG_NAME" -f "/opt/domain-locker/db/schema.sql" msg_ok "Built Database schema" msg_info "Creating Service" From f8eea7015069a9e2f130ee346620879b4c8cc7b6 Mon Sep 17 00:00:00 2001 From: Tobias <96661824+CrazyWolf13@users.noreply.github.com> Date: Sat, 15 Nov 2025 00:05:24 +0100 Subject: [PATCH 04/10] Use STD variable for npm run build command --- ct/domain-locker.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ct/domain-locker.sh b/ct/domain-locker.sh index b739ab6d7..f6054664d 100644 --- a/ct/domain-locker.sh +++ b/ct/domain-locker.sh @@ -47,7 +47,7 @@ function update_script() { set -a source /opt/domain-locker.env set +a - npm run build + $STD npm run build msg_info "Built Domain-Locker" msg_info "Restarting Services" From 270440558e7ed386af7df99a4798cf5bf7fa698d Mon Sep 17 00:00:00 2001 From: Tobias <96661824+CrazyWolf13@users.noreply.github.com> Date: Sat, 15 Nov 2025 00:06:15 +0100 Subject: [PATCH 05/10] Fix path in notes for DB credentials --- frontend/public/json/domain-locker.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/public/json/domain-locker.json b/frontend/public/json/domain-locker.json index 85dc5480d..9a9260903 100644 --- a/frontend/public/json/domain-locker.json +++ b/frontend/public/json/domain-locker.json @@ -33,7 +33,7 @@ }, "notes": [ { - "text": "Show DB credentials: `cat ~/domain-locker.creds`", + "text": "Show DB credentials: `cat ~/Domain-Locker.creds`", "type": "info" }, { From 0c5197188e4fbccd2cb705b5944ab547c9186d33 Mon Sep 17 00:00:00 2001 From: tremor021 Date: Sun, 16 Nov 2025 13:04:45 +0100 Subject: [PATCH 06/10] Add Passbolt script --- ct/passbolt.sh | 45 ++++++++++++++++++++++++++++++++ install/passbolt-install.sh | 51 +++++++++++++++++++++++++++++++++++++ 2 files changed, 96 insertions(+) create mode 100644 ct/passbolt.sh create mode 100644 install/passbolt-install.sh diff --git a/ct/passbolt.sh b/ct/passbolt.sh new file mode 100644 index 000000000..caf0696ba --- /dev/null +++ b/ct/passbolt.sh @@ -0,0 +1,45 @@ +#!/usr/bin/env bash +source <(curl -fsSL https://git.community-scripts.org/community-scripts/ProxmoxVED/raw/branch/main/misc/build.func) +# Copyright (c) 2021-2025 community-scripts ORG +# Author: Slaviša Arežina (tremor021) +# License: MIT | https://github.com/community-scripts/ProxmoxVED/raw/main/LICENSE +# Source: https://www.passbolt.com/ + +APP="Passbolt" +var_tags="${var_tags:-auth}" +var_cpu="${var_cpu:-2}" +var_ram="${var_ram:-2048}" +var_disk="${var_disk:-2}" +var_os="${var_os:-debian}" +var_version="${var_version:-13}" +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 /var ]]; then + msg_error "No ${APP} Installation Found!" + exit + fi + msg_info "Updating $APP LXC" + $STD apt update + $STD apt upgrade -y + msg_ok "Updated $APP LXC" + cleanup_lxc + 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 "${TAB}${GATEWAY}${BGN}https://${IP}${CL}" diff --git a/install/passbolt-install.sh b/install/passbolt-install.sh new file mode 100644 index 000000000..06a929aba --- /dev/null +++ b/install/passbolt-install.sh @@ -0,0 +1,51 @@ +#!/usr/bin/env bash + +# Copyright (c) 2021-2025 community-scripts ORG +# Author: Slaviša Arežina (tremor021) +# License: MIT | https://github.com/community-scripts/ProxmoxVED/raw/main/LICENSE +# Source: https://www.passbolt.com/ + +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 \ + apt-transport-https \ + python3-certbot-nginx \ + debconf-utils +msg_ok "Installed dependencies" + +setup_mariadb +MARIADB_DB_NAME="passboltdb" MARIADB_DB_USER="passbolt" MARIADB_DB_PASS="$(openssl rand -base64 18 | tr -dc 'a-zA-Z0-9' | head -c13)" setup_mariadb_db +setup_deb822_repo \ + "passbolt" \ + "https://keys.openpgp.org/pks/lookup?op=get&options=mr&search=0x3D1A0346C8E1802F774AEF21DE8B853FC155581D" \ + "https://download.passbolt.com/ce/debian" \ + "buster" \ + "stable" +create_self_signed_cert + +msg_info "Setting up Passbolt" +export DEBIAN_FRONTEND=noninteractive +IP_ADDR=$(hostname -I | awk '{print $1}') +echo passbolt-ce-server passbolt/mysql-configuration boolean true | debconf-set-selections +echo passbolt-ce-server passbolt/mysql-passbolt-username string $MARIADB_DB_USER | debconf-set-selections +echo passbolt-ce-server passbolt/mysql-passbolt-password password $MARIADB_DB_PASS | debconf-set-selections +echo passbolt-ce-server passbolt/mysql-passbolt-password-repeat password $MARIADB_DB_PASS | debconf-set-selections +echo passbolt-ce-server passbolt/mysql-passbolt-dbname string $MARIADB_DB_NAME | debconf-set-selections +echo passbolt-ce-server passbolt/nginx-configuration boolean true | debconf-set-selections +echo passbolt-ce-server passbolt/nginx-configuration-three-choices select manual | debconf-set-selections +echo passbolt-ce-server passbolt/nginx-domain string $IP_ADDR | debconf-set-selections +echo passbolt-ce-server passbolt/nginx-certificate-file string /etc/ssl/passbolt/passbolt.crt | debconf-set-selections +echo passbolt-ce-server passbolt/nginx-certificate-key-file string /etc/ssl/passbolt/passbolt.key | debconf-set-selections +$STD apt install -y --no-install-recommends passbolt-ce-server +msg_ok "Setup Passbolt" + +motd_ssh +customize +cleanup_lxc From 3f7e89a0b4f043daadf9ef6458c12356c5f3e1af Mon Sep 17 00:00:00 2001 From: tremor021 Date: Sun, 16 Nov 2025 13:12:44 +0100 Subject: [PATCH 07/10] Add Passbolt json --- frontend/public/json/passbolt.json | 40 ++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 frontend/public/json/passbolt.json diff --git a/frontend/public/json/passbolt.json b/frontend/public/json/passbolt.json new file mode 100644 index 000000000..2382b5b44 --- /dev/null +++ b/frontend/public/json/passbolt.json @@ -0,0 +1,40 @@ +{ + "name": "Passbolt", + "slug": "passbolt", + "categories": [ + 6 + ], + "date_created": "2025-09-04", + "type": "ct", + "updateable": true, + "privileged": false, + "interface_port": 443, + "documentation": "https://www.passbolt.com/docs/", + "config_path": "/etc/passbolt/passbolt.php", + "website": "https://www.passbolt.com/", + "logo": "https://cdn.jsdelivr.net/gh/selfhst/icons/webp/passbolt.webp", + "description": "Passbolt is a hybrid credential platform. It is built-first for modern IT teams, yet simple enough for everyone. A sovereign, battle-tested solution that delivers for a team of 5, or an organisation of 5000.", + "install_methods": [ + { + "type": "default", + "script": "ct/passbolt.sh", + "resources": { + "cpu": 2, + "ram": 2048, + "hdd": 2, + "os": "Debian", + "version": "13" + } + } + ], + "default_credentials": { + "username": null, + "password": null + }, + "notes": [ + { + "text": "Type `cat ~/.creds` to see MariaDB database credentials. You will need those to setup Passbolt.", + "type": "info" + } + ] +} From 4d9ad3033353481608d63c08d4facdaead5bf82d Mon Sep 17 00:00:00 2001 From: tremor021 Date: Sun, 16 Nov 2025 13:15:26 +0100 Subject: [PATCH 08/10] Update Passbolt --- frontend/public/json/passbolt.json | 4 ++++ install/passbolt-install.sh | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/frontend/public/json/passbolt.json b/frontend/public/json/passbolt.json index 2382b5b44..b9cedbd57 100644 --- a/frontend/public/json/passbolt.json +++ b/frontend/public/json/passbolt.json @@ -35,6 +35,10 @@ { "text": "Type `cat ~/.creds` to see MariaDB database credentials. You will need those to setup Passbolt.", "type": "info" + }, + { + "text": "The application uses self-signed certificates. You can use Let's Encrypt to get a valid certificate for your domain. Please read the documentation for more information.", + "type": "info" } ] } diff --git a/install/passbolt-install.sh b/install/passbolt-install.sh index 06a929aba..21ed15898 100644 --- a/install/passbolt-install.sh +++ b/install/passbolt-install.sh @@ -30,7 +30,7 @@ setup_deb822_repo \ "stable" create_self_signed_cert -msg_info "Setting up Passbolt" +msg_info "Setting up Passbolt (Patience)" export DEBIAN_FRONTEND=noninteractive IP_ADDR=$(hostname -I | awk '{print $1}') echo passbolt-ce-server passbolt/mysql-configuration boolean true | debconf-set-selections From 22bd9835ef1525a3f9ed2697fc59df2260e9b568 Mon Sep 17 00:00:00 2001 From: tremor021 Date: Sun, 16 Nov 2025 13:29:21 +0100 Subject: [PATCH 09/10] Update Passbolt --- install/passbolt-install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install/passbolt-install.sh b/install/passbolt-install.sh index 21ed15898..4e682173c 100644 --- a/install/passbolt-install.sh +++ b/install/passbolt-install.sh @@ -28,7 +28,7 @@ setup_deb822_repo \ "https://download.passbolt.com/ce/debian" \ "buster" \ "stable" -create_self_signed_cert +create_self_signed_cert "passbolt" msg_info "Setting up Passbolt (Patience)" export DEBIAN_FRONTEND=noninteractive From 4ea0a3fcdc5f3cc309d7b4870dfe8b85512351fb Mon Sep 17 00:00:00 2001 From: tremor021 Date: Sun, 16 Nov 2025 13:52:12 +0100 Subject: [PATCH 10/10] Add Passbolt json --- frontend/public/json/passbolt.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/public/json/passbolt.json b/frontend/public/json/passbolt.json index b9cedbd57..09359e49d 100644 --- a/frontend/public/json/passbolt.json +++ b/frontend/public/json/passbolt.json @@ -33,11 +33,11 @@ }, "notes": [ { - "text": "Type `cat ~/.creds` to see MariaDB database credentials. You will need those to setup Passbolt.", + "text": "Type `cat ~/.Passbolt.creds` to see MariaDB database credentials. You will need those to setup Passbolt.", "type": "info" }, { - "text": "The application uses self-signed certificates. You can use Let's Encrypt to get a valid certificate for your domain. Please read the documentation for more information.", + "text": "The application uses self-signed certificates. You can also use Let's Encrypt to get a valid certificate for your domain. Please read the documentation for more information.", "type": "info" } ]