Skip to content
Merged

EspoCRM #2347

Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix(espocrm): save the admin login to ~/espocrm.creds instead of prin…
…ting it
  • Loading branch information
Masked-Kunsiquat committed Oct 4, 2026
commit f514f4eb156bf833575b24028153e4b44409d97c
12 changes: 9 additions & 3 deletions install/espocrm-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,8 @@ if [[ -z "${var_admin_user:-}" ]]; then
var_admin_user=$(prompt_input "EspoCRM admin username:" "admin" 60)
fi
var_admin_user="${var_admin_user:-admin}"
admin_pass_display="(as supplied)"
if [[ -z "${var_admin_pass:-}" ]]; then
var_admin_pass=$(random_password 16)
admin_pass_display="$var_admin_pass"
fi

msg_info "Installing Dependencies"
Expand Down Expand Up @@ -128,7 +126,15 @@ EOF
systemctl enable -q --now cron
msg_ok "Set up Cron"

echo -e "${INFO}${YW}EspoCRM admin login:${CL} ${BGN}${var_admin_user}${CL} / ${BGN}${admin_pass_display}${CL}"
msg_info "Saving Credentials"
cat <<EOF >>~/espocrm.creds

EspoCRM Admin
Username: ${var_admin_user}
Password: ${var_admin_pass}
EOF
chmod 600 ~/espocrm.creds
msg_ok "Saved Credentials"

motd_ssh
customize
Expand Down
6 changes: 1 addition & 5 deletions json/espocrm.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,17 +35,13 @@
},
"notes": [
{
"text": "The admin password is generated during install and printed near the end of the install output. Change it after first login.",
"text": "The admin login (username and password) and the database credentials are saved to `~/espocrm.creds` inside the container. Change the admin password after first login.",
"type": "info"
},
{
"text": "The site URL is set to the container's IP at install time. If the IP changes or you put EspoCRM behind a domain or reverse proxy, update it under Administration > Settings > Site URL, or run `php /opt/espocrm/bin/command config:set siteUrl https://crm.example.com`.",
"type": "info"
},
{
"text": "Database credentials are stored in `~/espocrm.creds` inside the container.",
"type": "info"
},
{
"text": "Take a Proxmox snapshot before updating: updates replace the application code and run database migrations, which cannot be rolled back.",
"type": "warning"
Expand Down