mirror of
https://github.com/SuiteCRM/SuiteCRM.git
synced 2026-03-02 19:16:58 -05:00
setup_db_create_database is not honored in SilentInstall #3477
Labels
No labels
Area: API
Area: Campaigns
Area: Cases
Area: Clean Up
Area: Clean Up: Performance
Area: Dashlets
Area: Databases
Area: Developer Tools
Area: Elasticsearch
Area: Elasticsearch
Area: Emails
Area: Emails:Campaigns
Area: Emails:Cases
Area: Emails:Compose
Area: Emails:Config
Area: Emails:Templates
Area: Environment
Area: Installation
Area: Language
Area: Mobile
Area: Module
Area: PDFs
Area: PHP8
Area: Reports
Area: Studio
Area: Styling
Area: Upgrading
Area: Workflow
Area:Activity Stream
Area:Calls
Area:Import
Area:Projects
Area:Search
Area:Surveys
Area:Themes
Area:Users
Branch:Hotfix
Good First Issue
Hacktoberfest
Help Wanted
PR:Community Contribution
PR:Type:Enhancement
Priority:Critical
Priority:Important
Priority:Moderate
Severity: Major
Severity: Minor
Severity: Moderate
Status: Requires Code Review
Status: Requires Updates
Status: Stale
Status: Team Investigating
Status:Assessed
Status:Fix Proposed
Status:Needs Assessed
Status:Requires Automated Tests
Type: Bug
Type:Deprecated
Type:Discussion
Type:Duplicate
Type:Invalid
Type:Question
Type:Suggestion
Type:Suggestion
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/SuiteCRM-SuiteCRM#3477
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @rthomas67 on GitHub (Dec 27, 2018).
Issue
If SuiteCRM is being set up using the config_si.php file containing setup_db_create_database=0, the code should assume that the intent is to use an existing database.
Expected Behavior
Setup should skip over the create database and drop/create tables code, as well as all user creation and demo data generation.
Actual Behavior
Tables are dropped and recreated anyway, even if setup_db_create_database = 0 (false)
Before performSetup.php is called, the value of setup_db_create_database is overwritten to 1 (true)
Possible Fix
Fix the logic around line 325 of checkDBSettings.php such that it does not overwrite the value of setup_db_create_database.
https://github.com/salesagility/SuiteCRM/blob/v7.10.11/install/checkDBSettings.php#L325
Currently the logic is:
Steps to Reproduce
Example: http://www.jsmackin.co.uk/suitecrm/suitecrm-command-line-install/
or invoke it from the command line with $_REQUEST = array('goto' => 'SilentInstall', 'cli' => true);
Context
Attempting to set up SuiteCRM in a docker container image so that it can be started/restarted from scratch with a SilentInstall to generate the config.php but NOT destroy the an existing database.
Low priority. Have worked around it for the moment by altering the SuiteCRM logic that mishandles the SilentInstall.
Patch files to make the container work are here (for reference): https://github.com/rthomas67/rpi-suitecrm/tree/master/container_setup_patches
Your Environment