From 4a0910caeb643eebb2478f1e755a92d2bba4b9c9 Mon Sep 17 00:00:00 2001 From: onefang Date: Thu, 2 Sep 2021 13:46:03 +1000 Subject: Create the OpenSim specific directories as well, and web. --- src/sledjchisl/sledjchisl.c | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) (limited to 'src/sledjchisl/sledjchisl.c') diff --git a/src/sledjchisl/sledjchisl.c b/src/sledjchisl/sledjchisl.c index aca1cf9..8939e2b 100644 --- a/src/sledjchisl/sledjchisl.c +++ b/src/sledjchisl/sledjchisl.c @@ -8603,15 +8603,27 @@ Build the OpenSim. tmp = xmprintf("%s/db", scData); if ((! qfile_exist(tmp)) && (! qfile_mkdir(tmp, S_IRWXU | S_IRGRP | S_IXGRP, true))) C("Unable to create path %s", tmp); free(tmp); + tmp = xmprintf("%s/config", scRoot); + if ((! qfile_exist(tmp)) && (! qfile_mkdir(tmp, S_IRWXU | S_IRGRP | S_IXGRP, true))) C("Unable to create path %s", tmp); + free(tmp); + tmp = xmprintf("%s/AssetFiles/data", scRoot); + if ((! qfile_exist(tmp)) && (! qfile_mkdir(tmp, S_IRWXU | S_IRGRP | S_IXGRP, true))) C("Unable to create path %s", tmp); + free(tmp); + tmp = xmprintf("%s/AssetFiles/tmp/spool", scRoot); + if ((! qfile_exist(tmp)) && (! qfile_mkdir(tmp, S_IRWXU | S_IRGRP | S_IXGRP, true))) C("Unable to create path %s", tmp); + free(tmp); + tmp = xmprintf("%s/web", scRoot); + if ((! qfile_exist(tmp)) && (! qfile_mkdir(tmp, S_IRWXU | S_IRGRP | S_IXGRP, true))) C("Unable to create path %s", tmp); + free(tmp); /* TODO - tighten up security. Make sure correct permissions are set everywhere. sudo chown -R ${OS_USER}:${OS_USER} ${OS_PATH} Create the /opt/opensim-SC directory structure. - AssetFiles/data Think OpenSim creates all the sub directories itself? - AssetFiles/tmp/spool Think OpenSim creates all the sub directories itself? - config/config.ini (move that etc/config.ini later) +. AssetFiles/data Think OpenSim creates all the sub directories itself? +. AssetFiles/tmp/spool Think OpenSim creates all the sub directories itself? +. config/config.ini (move that to etc/config.ini later) . var/backups Copy examples/var/backups/*.IAR files, which are the newbie starter inventories. . var/cache Think OpenSim creates all the sub directories itself? . var/run HAS to be setup correctly BEFORE we try to start up tmux. -- cgit v1.1