aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--src/sledjchisl/sledjchisl.c74
1 files changed, 74 insertions, 0 deletions
diff --git a/src/sledjchisl/sledjchisl.c b/src/sledjchisl/sledjchisl.c
index e63cdec..b7ea5ea 100644
--- a/src/sledjchisl/sledjchisl.c
+++ b/src/sledjchisl/sledjchisl.c
@@ -7848,6 +7848,80 @@ Other possibilities -
7848 free(t0); 7848 free(t0);
7849 7849
7850 7850
7851/* TODO - stuff that used to be in InstallItAll.sh
7852Grab old database details from the config/config.ini file.
7853
7854Check the external requirements are met.
7855 sudo apt install mariadb-server libmariadbclient-dev tmux mono-complete mono-devel nunit uuid-runtime uuid-dev libapache2-mod-fcgid libssl1.0-dev spawn-fcgi
7856 sudo apt install nant
7857
7858Make sure the database is running.
7859 sudo /etc/init.d/mysql restart
7860
7861Setup the database stuff.
7862 create database if not exists $MYSQL_DB;
7863 create user if not exists '$MYSQL_USER' identified by '$MYSQL_PASSWORD';
7864 create user if not exists '$MYSQL_USER'@localhost identified by '$MYSQL_PASSWORD';
7865 grant all on $MYSQL_DB.* to '$MYSQL_USER';
7866 grant all on $MYSQL_DB.* to '$MYSQL_USER'@localhost;
7867 FLUSH PRIVILEGES;
7868
7869Deal with the user.
7870 sudo adduser --system --shell /bin/bash --group ${OS_USER}
7871 sudo addgroup ${USER} ${OS_USER}
7872
7873Create the /opt/opensim-SC directory structure.
7874 We do most of that below anyway.
7875 AssetFiles/data Think OpenSim creates all the sub directories itself?
7876 AssetFiles/tmp/spool Think OpenSim creates all the sub directories itself?
7877 bin
7878 config/config.ini (move that etc/config.ini later)
7879 etc
7880 tmp
7881 var/backups Copy examples/var/backups/*.IAR files, which are the newbie starter inventories.
7882 var/cache Think OpenSim creates all the sub directories itself?
7883 var/lib/db
7884 var/lib/users
7885 var/log
7886 var/run HAS to be setup correctly BEFORE we try to start up tmux.
7887 web // Fill it with default web stuff from current -> example..
7888
7889Copy the tmux config to user's homes.
7890
7891Copy this version of opensim-SC to /opt/opensim-SC, and make the current symlink to it.
7892
7893Copy correct config/config.ini to there.
7894 Put new database credentials in config/config.ini
7895
7896Make sure correct permissions are set everywhere.
7897 sudo chmod 600 ${OS_PATH}/config/*.ini
7898 sudo chmod 600 ${OS_PATH}/config/ROBUST/*.ini
7899 sudo chown -R ${OS_USER}:${OS_USER} ${OS_PATH}
7900 sudo chmod -R 775 ${OS_PATH}
7901 sudo chmod -R a-x ${OS_PATH}
7902 sudo chmod -R a+X ${OS_PATH}
7903 sudo chmod -R g+w ${OS_PATH}
7904 sudo chmod -R a+x ${OS_PATH}/current/*.sh
7905 sudo chmod -R a+x ${OS_PATH}/current/scripts/*.sh
7906 sudo chmod -R a+x ${OS_PATH}/current/scripts/install/*.sh
7907 sudo chmod a+x ${OS_PATH}/current/scripts/show-console
7908 sudo chmod a+x ${OS_PATH}/current/scripts/start-sim
7909
7910 sudo chmod ug+rwx ${OS_PATH}/config
7911 sudo chmod g+s ${OS_PATH}/config
7912 sudo chmod 600 ${OS_PATH}/config/*.ini
7913 sudo chmod 600 ${OS_PATH}/config/ROBUST/*.ini
7914 sudo chmod ug+rwx ${OS_PATH}/etc
7915 sudo chmod g+s ${OS_PATH}/etc
7916 sudo chmod a+x ${OS_PATH}/config/*.shini
7917
7918 chmod ug+rwx ${OS_PATH}/var/cache
7919 chmod o-rwx ${OS_PATH}/var/cache
7920 chmod g+s ${OS_PATH}/var/cache
7921
7922Build the OpenSim.
7923*/
7924
7851 7925
7852//////////////////////////////////////////////////////////////////////////////////////////////////// 7926////////////////////////////////////////////////////////////////////////////////////////////////////
7853// Sort out directories. 7927// Sort out directories.