mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-02-08 14:23:25 +01:00
Compare commits
4 Commits
pr-update-
...
add-script
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9468c27ded | ||
|
|
132c1adb73 | ||
|
|
b7183f6caa | ||
|
|
a69b9ed290 |
@@ -400,10 +400,6 @@ Exercise vigilance regarding copycat or coat-tailing sites that seek to exploit
|
||||
|
||||
## 2026-02-07
|
||||
|
||||
### 🆕 New Scripts
|
||||
|
||||
- Bichon ([#11671](https://github.com/community-scripts/ProxmoxVE/pull/11671))
|
||||
|
||||
### 🚀 Updated Scripts
|
||||
|
||||
- #### 🐞 Bug Fixes
|
||||
|
||||
55
ct/bichon.sh
55
ct/bichon.sh
@@ -1,55 +0,0 @@
|
||||
#!/usr/bin/env bash
|
||||
source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/build.func)
|
||||
# Copyright (c) 2021-2026 community-scripts ORG
|
||||
# Author: Slaviša Arežina (tremor021)
|
||||
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
|
||||
# Source: https://github.com/rustmailer/bichon
|
||||
|
||||
APP="Bichon"
|
||||
var_tags="${var_tags:-email;archive}"
|
||||
var_cpu="${var_cpu:-1}"
|
||||
var_ram="${var_ram:-1024}"
|
||||
var_disk="${var_disk:-4}"
|
||||
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 /opt/bichon ]]; then
|
||||
msg_error "No ${APP} Installation Found!"
|
||||
exit
|
||||
fi
|
||||
|
||||
if check_for_gh_release "bichon" "rustmailer/bichon"; then
|
||||
msg_info "Stopping service"
|
||||
systemctl stop bichon
|
||||
msg_ok "Stopped service"
|
||||
|
||||
cp /opt/bichon/bichon.env /tmp/bichon.env.backup
|
||||
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "bichon" "rustmailer/bichon" "prebuild" "latest" "/opt/bichon" "bichon-*-x86_64-unknown-linux-gnu.tar.gz"
|
||||
cp /tmp/bichon.env.backup /opt/bichon/bichon.env
|
||||
|
||||
msg_info "Starting service"
|
||||
systemctl start bichon
|
||||
msg_ok "Service started"
|
||||
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 "${TAB}${GATEWAY}${BGN}http://${IP}:15630${CL}"
|
||||
@@ -1,6 +0,0 @@
|
||||
____ _ __
|
||||
/ __ )(_)____/ /_ ____ ____
|
||||
/ __ / / ___/ __ \/ __ \/ __ \
|
||||
/ /_/ / / /__/ / / / /_/ / / / /
|
||||
/_____/_/\___/_/ /_/\____/_/ /_/
|
||||
|
||||
@@ -1,6 +0,0 @@
|
||||
________ __ __
|
||||
/ ____/ /_ ___ _____/ /______ ___ ____ _/ /____
|
||||
/ / / __ \/ _ \/ ___/ //_/ __ `__ \/ __ `/ __/ _ \
|
||||
/ /___/ / / / __/ /__/ ,< / / / / / / /_/ / /_/ __/
|
||||
\____/_/ /_/\___/\___/_/|_/_/ /_/ /_/\__,_/\__/\___/
|
||||
|
||||
@@ -1,40 +0,0 @@
|
||||
{
|
||||
"name": "Bichon",
|
||||
"slug": "bichon",
|
||||
"categories": [
|
||||
7
|
||||
],
|
||||
"date_created": "2026-02-07",
|
||||
"type": "ct",
|
||||
"updateable": true,
|
||||
"privileged": false,
|
||||
"interface_port": 15630,
|
||||
"documentation": "https://github.com/rustmailer/bichon/wiki",
|
||||
"config_path": "/opt/bichon/bichon.env",
|
||||
"website": "https://github.com/rustmailer/bichon",
|
||||
"logo": "https://cdn.jsdelivr.net/gh/selfhst/icons@main/webp/bichon.webp",
|
||||
"description": "Bichon is an open-source email archiving system that synchronizes emails from IMAP servers, indexes them for full-text search, and provides a REST API for programmatic access. Unlike email clients, Bichon is designed for archiving and searching rather than sending/receiving emails. It runs as a standalone server application that continuously synchronizes configured email accounts and maintains a searchable local archive.",
|
||||
"install_methods": [
|
||||
{
|
||||
"type": "default",
|
||||
"script": "ct/bichon.sh",
|
||||
"resources": {
|
||||
"cpu": 1,
|
||||
"ram": 1024,
|
||||
"hdd": 4,
|
||||
"os": "Debian",
|
||||
"version": "13"
|
||||
}
|
||||
}
|
||||
],
|
||||
"default_credentials": {
|
||||
"username": "admin",
|
||||
"password": "admin@bichon"
|
||||
},
|
||||
"notes": [
|
||||
{
|
||||
"text": "The Disk space initially allocated by the script is only a placeholder, as we can't know how much space you will ever need. You should increase it to match your workload.",
|
||||
"type": "info"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -1,65 +0,0 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# Copyright (c) 2021-2026 community-scripts ORG
|
||||
# Author: Slaviša Arežina (tremor021)
|
||||
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
|
||||
# Source: https://github.com/rustmailer/bichon
|
||||
|
||||
source /dev/stdin <<<"$FUNCTIONS_FILE_PATH"
|
||||
color
|
||||
verb_ip6
|
||||
catch_errors
|
||||
setting_up_container
|
||||
network_check
|
||||
update_os
|
||||
|
||||
fetch_and_deploy_gh_release "bichon" "rustmailer/bichon" "prebuild" "latest" "/opt/bichon" "bichon-*-x86_64-unknown-linux-gnu.tar.gz"
|
||||
|
||||
read -r -p "${TAB3}Enter the public URL for Bichon (e.g., https://bichon.yourdomain.com) or leave empty to use container IP: " bichon_url
|
||||
if [[ -z "$bichon_url" ]]; then
|
||||
msg_info "No URL provided"
|
||||
BICHON_PUBLIC_URL="http://$LOCAL_IP:15630"
|
||||
msg_ok "Using local IP: http://$LOCAL_IP:15630\n"
|
||||
else
|
||||
msg_info "URL provided"
|
||||
BICHON_PUBLIC_URL="$bichon_url"
|
||||
msg_ok "Using provided URL: $BICHON_PUBLIC_URL\n"
|
||||
fi
|
||||
|
||||
msg_info "Setting up Bichon"
|
||||
mkdir -p /opt/bichon-data
|
||||
BICHON_ENC_PASSWORD=$(openssl rand -base64 32 | tr -d "=+/" | cut -c1-32)
|
||||
|
||||
cat <<EOF >/opt/bichon/bichon.env
|
||||
BICHON_ROOT_DIR=/opt/bichon-data
|
||||
BICHON_LOG_LEVEL=info
|
||||
BICHON_ENCRYPT_PASSWORD=$BICHON_ENC_PASSWORD
|
||||
BICHON_PUBLIC_URL=$BICHON_PUBLIC_URL
|
||||
BICHON_CORS_ORIGINS=$BICHON_PUBLIC_URL
|
||||
EOF
|
||||
msg_ok "Setup Bichon"
|
||||
|
||||
msg_info "Creating Service"
|
||||
cat <<EOF >/etc/systemd/system/bichon.service
|
||||
[Unit]
|
||||
Description=Bichon service
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=root
|
||||
EnvironmentFile=/opt/bichon/bichon.env
|
||||
WorkingDirectory=/opt/bichon
|
||||
ExecStart=/opt/bichon/bichon
|
||||
Restart=on-failure
|
||||
RestartSec=5
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
EOF
|
||||
systemctl enable -q --now bichon
|
||||
msg_info "Created Service"
|
||||
|
||||
motd_ssh
|
||||
customize
|
||||
cleanup_lxc
|
||||
Reference in New Issue
Block a user