|
| 1 | +#!/usr/bin/env bash |
| 2 | + |
| 3 | +# Copyright (c) 2021-2025 community-scripts ORG |
| 4 | +# Author: Slaviša Arežina (tremor021) |
| 5 | +# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE |
| 6 | +# Source: https://www.passbolt.com/ |
| 7 | + |
| 8 | +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" |
| 9 | +color |
| 10 | +verb_ip6 |
| 11 | +catch_errors |
| 12 | +setting_up_container |
| 13 | +network_check |
| 14 | +update_os |
| 15 | + |
| 16 | +msg_info "Installing dependencies" |
| 17 | +$STD apt install -y \ |
| 18 | + apt-transport-https \ |
| 19 | + python3-certbot-nginx \ |
| 20 | + debconf-utils |
| 21 | +msg_ok "Installed dependencies" |
| 22 | + |
| 23 | +setup_mariadb |
| 24 | +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 |
| 25 | +setup_deb822_repo \ |
| 26 | + "passbolt" \ |
| 27 | + "https://keys.openpgp.org/pks/lookup?op=get&options=mr&search=0x3D1A0346C8E1802F774AEF21DE8B853FC155581D" \ |
| 28 | + "https://download.passbolt.com/ce/debian" \ |
| 29 | + "buster" \ |
| 30 | + "stable" |
| 31 | +create_self_signed_cert "passbolt" |
| 32 | + |
| 33 | +msg_info "Setting up Passbolt (Patience)" |
| 34 | +export DEBIAN_FRONTEND=noninteractive |
| 35 | +IP_ADDR=$(hostname -I | awk '{print $1}') |
| 36 | +echo passbolt-ce-server passbolt/mysql-configuration boolean true | debconf-set-selections |
| 37 | +echo passbolt-ce-server passbolt/mysql-passbolt-username string $MARIADB_DB_USER | debconf-set-selections |
| 38 | +echo passbolt-ce-server passbolt/mysql-passbolt-password password $MARIADB_DB_PASS | debconf-set-selections |
| 39 | +echo passbolt-ce-server passbolt/mysql-passbolt-password-repeat password $MARIADB_DB_PASS | debconf-set-selections |
| 40 | +echo passbolt-ce-server passbolt/mysql-passbolt-dbname string $MARIADB_DB_NAME | debconf-set-selections |
| 41 | +echo passbolt-ce-server passbolt/nginx-configuration boolean true | debconf-set-selections |
| 42 | +echo passbolt-ce-server passbolt/nginx-configuration-three-choices select manual | debconf-set-selections |
| 43 | +echo passbolt-ce-server passbolt/nginx-domain string $IP_ADDR | debconf-set-selections |
| 44 | +echo passbolt-ce-server passbolt/nginx-certificate-file string /etc/ssl/passbolt/passbolt.crt | debconf-set-selections |
| 45 | +echo passbolt-ce-server passbolt/nginx-certificate-key-file string /etc/ssl/passbolt/passbolt.key | debconf-set-selections |
| 46 | +$STD apt install -y --no-install-recommends passbolt-ce-server |
| 47 | +msg_ok "Setup Passbolt" |
| 48 | + |
| 49 | +motd_ssh |
| 50 | +customize |
| 51 | +cleanup_lxc |
0 commit comments