Hi everyone,
Was hoping someone could point me in the right direction when it comes to installing modules without using the module loader.
What I was hoping for is a robo command that would extract the files. Then we could run the repair command to add the tables.
Any advice would be appreciated
The Module installer documentation will help you understand the package contents:
There currently isn’t a Robo task that I know of - but maybe, just maybe , it won’t be too hard to do. See here for a starting point:
}
}
public function unlinkTempFiles()
{
global $sugar_config;
@unlink($_FILES['upgrade_zip']['tmp_name']);
@unlink("upload://".$_FILES['upgrade_zip']['name']);
}
public function performInstall($file, $silent=true)
{
global $sugar_config;
global $mod_strings;
global $current_language;
$base_upgrade_dir = $this->upload_dir.'/upgrades';
$base_tmp_upgrade_dir = "$base_upgrade_dir/temp";
if (!file_exists($base_tmp_upgrade_dir)) {
mkdir_recursive($base_tmp_upgrade_dir, true);
}
That silent
parameter might be what you’re looking for.
Hey, did you found solution how install module from command line?
Hey Imax,
We are using Kubernetes, so we wanted a way to ship a docker container with the modules already installed.
(To make our CI/CD practices work better)
What we ended up doing is;
Creating a git repo
Installing SuiteCRM from source
Running the application
Installing the module
Git ignoring all the cached areas
Liquibase to do Database changes
We got there in the end.
It allowed us to stop using an NFS. (We didn’t need to do file uploads)
1 Like
Yes, I am familiar with this process, but I don’t want to click everything manually. That’s also the reason why I’m interested in what is needed for creating my own Docker image. I would be okay if it was enough to download it via the wget module and install it through a simple command in the Bitnami image, but I haven’t found such an installation method.