From 070e8694fdc23abad0fdba9442eb8dcd944e1974 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Sun, 8 Nov 2026 15:08:15 +0000 Subject: [PATCH] Delete espocrm (ct) after migration to ProxmoxVE --- ct/espocrm.sh | 77 ------------------- install/espocrm-install.sh | 146 ------------------------------------- json/espocrm.json | 61 ---------------- 3 files changed, 284 deletions(-) delete mode 100644 ct/espocrm.sh delete mode 100644 install/espocrm-install.sh delete mode 100644 json/espocrm.json diff --git a/ct/espocrm.sh b/ct/espocrm.sh deleted file mode 100644 index 29f34d623f..0000000000 --- a/ct/espocrm.sh +++ /dev/null @@ -1,77 +0,0 @@ -#!/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: Masked-Kunsiquat -# License: MIT | https://github.com/community-scripts/ProxmoxVED/raw/main/LICENSE -# Source: https://www.espocrm.com/ | Github: https://github.com/espocrm/espocrm - -APP="EspoCRM" -var_tags="${var_tags:-crm;business}" -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}" -var_testurl="${var_testurl:-https://github.com/community-scripts/DevScripts/issues/2457}" - -export var_admin_user="${var_admin_user:-}" -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/espocrm ]]; then - msg_error "No ${APP} Installation Found!" - exit - fi - - if check_for_gh_release "espocrm" "espocrm/espocrm"; then - msg_info "Stopping Services" - systemctl stop nginx cron php8.4-fpm - msg_ok "Stopped Services" - - CLEAN_INSTALL=1 CLEAN_INSTALL_KEEP="data custom client/custom" fetch_and_deploy_gh_release "espocrm" "espocrm/espocrm" "prebuild" "latest" "/opt/espocrm" "EspoCRM-*.zip" - - msg_info "Migrating EspoCRM" - cd /opt/espocrm - $STD php bin/command clear-cache - if ! $STD php bin/command migrate; then - rm -f ~/.espocrm - chown -R www-data:www-data /opt/espocrm - systemctl start php8.4-fpm - systemctl start cron nginx - msg_error "Migration failed; customizations may be incompatible. Check /opt/espocrm/data/logs, then run update again." - exit 1 - fi - chown -R www-data:www-data /opt/espocrm - msg_ok "Migrated EspoCRM" - - msg_info "Starting Services" - systemctl start php8.4-fpm - systemctl start cron nginx - msg_ok "Started Services" - 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}" diff --git a/install/espocrm-install.sh b/install/espocrm-install.sh deleted file mode 100644 index f8a2641af7..0000000000 --- a/install/espocrm-install.sh +++ /dev/null @@ -1,146 +0,0 @@ -#!/usr/bin/env bash - -# Copyright (c) 2021-2026 community-scripts ORG -# Author: Masked-Kunsiquat -# License: MIT | https://github.com/community-scripts/ProxmoxVED/raw/main/LICENSE -# Source: https://www.espocrm.com/ | Github: https://github.com/espocrm/espocrm - -source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" -color -verb_ip6 -catch_errors -setting_up_container -network_check -update_os - -if [[ -z "${var_admin_user:-}" ]]; then - var_admin_user=$(prompt_input "EspoCRM admin username (a-z, 0-9, @ . _ -):" "admin" 60) -fi -var_admin_user="${var_admin_user:-admin}" -var_admin_user="${var_admin_user,,}" -if [[ ! "$var_admin_user" =~ ^[a-z0-9@._-]+$ ]]; then - msg_warn "EspoCRM usernames take only a-z, 0-9 and @ . _ -; using admin" - var_admin_user="admin" -fi -if [[ -z "${var_admin_pass:-}" ]]; then - var_admin_pass=$(random_password 16) -fi - -msg_info "Installing Dependencies" -$STD apt install -y nginx -msg_ok "Installed Dependencies" - -setup_mariadb -MARIADB_DB_NAME="espocrm" MARIADB_DB_USER="espocrm" setup_mariadb_db -PHP_VERSION="8.4" PHP_FPM="YES" PHP_MODULE="ldap" setup_php -fetch_and_deploy_gh_release "espocrm" "espocrm/espocrm" "prebuild" "latest" "/opt/espocrm" "EspoCRM-*.zip" - -msg_info "Configuring EspoCRM" -cd /opt/espocrm -$STD php bin/command config:populate -$STD php bin/command config:set defaultPermissions.user www-data -$STD php bin/command config:set defaultPermissions.group www-data -$STD php bin/command config:set database.platform Mysql -$STD php bin/command config:set database.host localhost -$STD php bin/command config:set database.dbname "$MARIADB_DB_NAME" -$STD php bin/command config:set database.user "$MARIADB_DB_USER" -$STD php bin/command config:set database.password "$MARIADB_DB_PASS" -$STD php bin/command rebuild -$STD php bin/command create-admin-user "$var_admin_user" -printf '%s\n' "$var_admin_pass" | $STD php bin/command set-password "$var_admin_user" -$STD php bin/command config:set siteUrl "http://${LOCAL_IP}" -$STD php bin/command populate-scheduled-jobs -$STD php bin/command config:set jobRunInParallel true --type=bool -$STD php bin/command app-check -$STD php bin/command config:set isInstalled true --type=bool -chown -R www-data:www-data /opt/espocrm -msg_ok "Configured EspoCRM" - -msg_info "Creating Nginx Site" -PHP_SOCK=$(get_php_fpm_socket) -cat </etc/nginx/sites-available/espocrm -server { - listen 80 default_server; - listen [::]:80 default_server; - server_name _; - - charset utf-8; - index index.html index.php; - - client_max_body_size 128M; - keepalive_timeout 300; - server_tokens off; - fastcgi_send_timeout 300; - fastcgi_read_timeout 300; - - gzip on; - gzip_types text/plain text/css text/javascript application/javascript application/json; - gzip_min_length 1000; - - root /opt/espocrm/public; - - location /client { - root /opt/espocrm; - autoindex off; - - location ~* ^.+\.(js|css|png|jpg|svg|svgz|jpeg|gif|ico|tpl)\$ { - access_log off; - expires max; - } - } - - location = /favicon.ico { access_log off; log_not_found off; } - location = /robots.txt { access_log off; log_not_found off; } - - location ~ \.php\$ { - fastcgi_pass unix:${PHP_SOCK}; - include fastcgi_params; - fastcgi_index index.php; - fastcgi_param SCRIPT_FILENAME \$document_root\$fastcgi_script_name; - fastcgi_param QUERY_STRING \$query_string; - } - - location /api/v1/ { - if (!-e \$request_filename) { - rewrite ^/api/v1/(.*)\$ /api/v1/index.php last; - } - } - - location /portal/ { - try_files \$uri \$uri/ /portal/index.php?\$query_string; - } - - location /api/v1/portal-access { - if (!-e \$request_filename) { - rewrite ^/api/v1/(.*)\$ /api/v1/portal-access/index.php last; - } - } - - location ~ /(\.htaccess|web\.config|\.git) { - deny all; - } -} -EOF -msg_ok "Created Nginx Site" -nginx_enable_site "espocrm" - -msg_info "Setting up Cron" -cat </etc/cron.d/espocrm -* * * * * www-data cd /opt/espocrm && php -f cron.php >/dev/null 2>&1 -EOF -systemctl enable -q --now cron -msg_ok "Set up Cron" - -msg_info "Saving Credentials" -cat <>~/espocrm.creds - -EspoCRM Admin -Username: ${var_admin_user} -Password: ${var_admin_pass} -EOF -chmod 600 ~/espocrm.creds -msg_ok "Saved Credentials" - -motd_ssh -customize -cleanup_lxc diff --git a/json/espocrm.json b/json/espocrm.json deleted file mode 100644 index 6bd7d2cca8..0000000000 --- a/json/espocrm.json +++ /dev/null @@ -1,61 +0,0 @@ -{ - "name": "EspoCRM", - "slug": "espocrm", - "categories": [ - 25 - ], - "date_created": "2026-10-02", - "type": "ct", - "updateable": true, - "privileged": false, - "architectures": ["amd64", "arm64"], - "interface_port": 80, - "documentation": "https://docs.espocrm.com/", - "website": "https://www.espocrm.com/", - "repository": "https://github.com/espocrm/espocrm", - "logo": "https://cdn.jsdelivr.net/gh/selfhst/icons@main/webp/espocrm.webp", - "description": "EspoCRM is an open-source CRM for managing contacts, accounts, leads, opportunities, cases and email, with a customizable entity manager and a REST API.", - "install_methods": [ - { - "type": "default", - "script": "ct/espocrm.sh", - "config_path": "/opt/espocrm/data/config-internal.php", - "resources": { - "cpu": 2, - "ram": 2048, - "hdd": 8, - "os": "Debian", - "version": "13" - } - } - ], - "default_credentials": { - "username": "admin", - "password": null - }, - "notes": [ - { - "text": "The admin login is saved to ~/espocrm.creds inside the container.", - "type": "info" - }, - { - "text": "If the IP changes or EspoCRM sits behind a domain or reverse proxy, update the site URL under Administration > Settings.", - "type": "info" - } - ], - "app_vars": [ - { - "name": "var_admin_user", - "label": "Admin Username", - "type": "text", - "default": "admin" - }, - { - "name": "var_admin_pass", - "label": "Admin Password", - "type": "password", - "secret": true, - "help": "Generated when left empty" - } - ] -}