aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--src/sledjchisl/sledjchisl.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/sledjchisl/sledjchisl.c b/src/sledjchisl/sledjchisl.c
index 3e21d10..3d4f685 100644
--- a/src/sledjchisl/sledjchisl.c
+++ b/src/sledjchisl/sledjchisl.c
@@ -8804,6 +8804,19 @@ Create the /opt/opensim-SC directory structure.
8804// Not sure if we need to worry about it just yet. 8804// Not sure if we need to worry about it just yet.
8805// TODO - this leaks memory, but it's a bug in qLibc. Send the bug fix upstream. 8805// TODO - this leaks memory, but it's a bug in qLibc. Send the bug fix upstream.
8806 snprintf(toybuf, sizeof(toybuf), "%s/config/config.ini", scRoot); 8806 snprintf(toybuf, sizeof(toybuf), "%s/config/config.ini", scRoot);
8807 V("Reading %s and connecting to database.", toybuf);
8808
8809 char *cmd = xmprintf("sed -i -E"
8810 " -e 's$BackupPath = \"../../backups\"$BackupPath = \"../../var/backups\"$'"
8811 " -e 's$CachePath = \"../../caches\"$CachePath = \"../../var/cache\"$'"
8812 " -e 's$DbPath = \"../../db\"$DbPath = \"../../var/lib/db\"$'"
8813 " -e 's$LogPath = \"../../logs\"$LogPath = \"../../var/log\"$'"
8814 " -e 's$WebPath = \"../../web\"$PIDPath = \"../../var/run\"\\n WebPath = \"../../var/run/www/html\"$'"
8815 " %s", toybuf);
8816
8817 if (shellMeFail(cmd))
8818 E("sed command failed!");
8819
8807 qlisttbl_t *qconfig = qconfig_parse_file(NULL, toybuf, '='); 8820 qlisttbl_t *qconfig = qconfig_parse_file(NULL, toybuf, '=');
8808 if (NULL == qconfig) 8821 if (NULL == qconfig)
8809 { 8822 {