diff options
Diffstat (limited to 'src/sledjchisl/sledjchisl.c')
-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. |