aboutsummaryrefslogtreecommitdiff
path: root/src/delivery.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/delivery.c')
-rw-r--r--src/delivery.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/delivery.c b/src/delivery.c
index 11c5581..37845a8 100644
--- a/src/delivery.c
+++ b/src/delivery.c
@@ -1432,6 +1432,18 @@ void delivery_install_conda(char *install_script, char *conda_install_dir) {
fprintf(stderr, "conda installation failed\n");
exit(1);
}
+ } else {
+ // Proceed with the installation
+ // -b = batch mode (non-interactive)
+ char cmd[PATH_MAX] = {0};
+ snprintf(cmd, sizeof(cmd) - 1, "%s %s -b -p %s",
+ find_program("bash"),
+ install_script,
+ conda_install_dir);
+ if (shell_safe(&proc, cmd)) {
+ fprintf(stderr, "conda installation failed\n");
+ exit(1);
+ }
}
} else {
msg(STASIS_MSG_L3, "Conda removal disabled by configuration\n");