diff options
author | onefang | 2021-09-02 13:46:03 +1000 |
---|---|---|
committer | onefang | 2021-09-02 13:46:03 +1000 |
commit | 4a0910caeb643eebb2478f1e755a92d2bba4b9c9 (patch) | |
tree | 9efdf7dca9d009cb94c66f13a48557ca611a101b | |
parent | Comment and swear words ++ (diff) | |
download | opensim-SC-4a0910caeb643eebb2478f1e755a92d2bba4b9c9.zip opensim-SC-4a0910caeb643eebb2478f1e755a92d2bba4b9c9.tar.gz opensim-SC-4a0910caeb643eebb2478f1e755a92d2bba4b9c9.tar.bz2 opensim-SC-4a0910caeb643eebb2478f1e755a92d2bba4b9c9.tar.xz |
Create the OpenSim specific directories as well, and web.
-rw-r--r-- | src/sledjchisl/sledjchisl.c | 18 |
1 files changed, 15 insertions, 3 deletions
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. | |||
8603 | tmp = xmprintf("%s/db", scData); | 8603 | tmp = xmprintf("%s/db", scData); |
8604 | if ((! qfile_exist(tmp)) && (! qfile_mkdir(tmp, S_IRWXU | S_IRGRP | S_IXGRP, true))) C("Unable to create path %s", tmp); | 8604 | if ((! qfile_exist(tmp)) && (! qfile_mkdir(tmp, S_IRWXU | S_IRGRP | S_IXGRP, true))) C("Unable to create path %s", tmp); |
8605 | free(tmp); | 8605 | free(tmp); |
8606 | tmp = xmprintf("%s/config", scRoot); | ||
8607 | if ((! qfile_exist(tmp)) && (! qfile_mkdir(tmp, S_IRWXU | S_IRGRP | S_IXGRP, true))) C("Unable to create path %s", tmp); | ||
8608 | free(tmp); | ||
8609 | tmp = xmprintf("%s/AssetFiles/data", scRoot); | ||
8610 | if ((! qfile_exist(tmp)) && (! qfile_mkdir(tmp, S_IRWXU | S_IRGRP | S_IXGRP, true))) C("Unable to create path %s", tmp); | ||
8611 | free(tmp); | ||
8612 | tmp = xmprintf("%s/AssetFiles/tmp/spool", scRoot); | ||
8613 | if ((! qfile_exist(tmp)) && (! qfile_mkdir(tmp, S_IRWXU | S_IRGRP | S_IXGRP, true))) C("Unable to create path %s", tmp); | ||
8614 | free(tmp); | ||
8615 | tmp = xmprintf("%s/web", scRoot); | ||
8616 | if ((! qfile_exist(tmp)) && (! qfile_mkdir(tmp, S_IRWXU | S_IRGRP | S_IXGRP, true))) C("Unable to create path %s", tmp); | ||
8617 | free(tmp); | ||
8606 | 8618 | ||
8607 | /* TODO - tighten up security. | 8619 | /* TODO - tighten up security. |
8608 | Make sure correct permissions are set everywhere. | 8620 | Make sure correct permissions are set everywhere. |
8609 | sudo chown -R ${OS_USER}:${OS_USER} ${OS_PATH} | 8621 | sudo chown -R ${OS_USER}:${OS_USER} ${OS_PATH} |
8610 | 8622 | ||
8611 | Create the /opt/opensim-SC directory structure. | 8623 | Create the /opt/opensim-SC directory structure. |
8612 | AssetFiles/data Think OpenSim creates all the sub directories itself? | 8624 | . AssetFiles/data Think OpenSim creates all the sub directories itself? |
8613 | AssetFiles/tmp/spool Think OpenSim creates all the sub directories itself? | 8625 | . AssetFiles/tmp/spool Think OpenSim creates all the sub directories itself? |
8614 | config/config.ini (move that etc/config.ini later) | 8626 | . config/config.ini (move that to etc/config.ini later) |
8615 | . var/backups Copy examples/var/backups/*.IAR files, which are the newbie starter inventories. | 8627 | . var/backups Copy examples/var/backups/*.IAR files, which are the newbie starter inventories. |
8616 | . var/cache Think OpenSim creates all the sub directories itself? | 8628 | . var/cache Think OpenSim creates all the sub directories itself? |
8617 | . var/run HAS to be setup correctly BEFORE we try to start up tmux. | 8629 | . var/run HAS to be setup correctly BEFORE we try to start up tmux. |