From 3ec460a8a1a4cf08662c7dcd32f85814d6e010e0 Mon Sep 17 00:00:00 2001 From: onefang Date: Wed, 18 Aug 2021 23:28:44 +1000 Subject: TODO++++ --- src/sledjchisl/sledjchisl.c | 74 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 74 insertions(+) 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 - free(t0); +/* TODO - stuff that used to be in InstallItAll.sh +Grab old database details from the config/config.ini file. + +Check the external requirements are met. + 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 + sudo apt install nant + +Make sure the database is running. + sudo /etc/init.d/mysql restart + +Setup the database stuff. + create database if not exists $MYSQL_DB; + create user if not exists '$MYSQL_USER' identified by '$MYSQL_PASSWORD'; + create user if not exists '$MYSQL_USER'@localhost identified by '$MYSQL_PASSWORD'; + grant all on $MYSQL_DB.* to '$MYSQL_USER'; + grant all on $MYSQL_DB.* to '$MYSQL_USER'@localhost; + FLUSH PRIVILEGES; + +Deal with the user. + sudo adduser --system --shell /bin/bash --group ${OS_USER} + sudo addgroup ${USER} ${OS_USER} + +Create the /opt/opensim-SC directory structure. + We do most of that below anyway. + AssetFiles/data Think OpenSim creates all the sub directories itself? + AssetFiles/tmp/spool Think OpenSim creates all the sub directories itself? + bin + config/config.ini (move that etc/config.ini later) + etc + tmp + 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/lib/db + var/lib/users + var/log + var/run HAS to be setup correctly BEFORE we try to start up tmux. + web // Fill it with default web stuff from current -> example.. + +Copy the tmux config to user's homes. + +Copy this version of opensim-SC to /opt/opensim-SC, and make the current symlink to it. + +Copy correct config/config.ini to there. + Put new database credentials in config/config.ini + +Make sure correct permissions are set everywhere. + sudo chmod 600 ${OS_PATH}/config/*.ini + sudo chmod 600 ${OS_PATH}/config/ROBUST/*.ini + sudo chown -R ${OS_USER}:${OS_USER} ${OS_PATH} + sudo chmod -R 775 ${OS_PATH} + sudo chmod -R a-x ${OS_PATH} + sudo chmod -R a+X ${OS_PATH} + sudo chmod -R g+w ${OS_PATH} + sudo chmod -R a+x ${OS_PATH}/current/*.sh + sudo chmod -R a+x ${OS_PATH}/current/scripts/*.sh + sudo chmod -R a+x ${OS_PATH}/current/scripts/install/*.sh + sudo chmod a+x ${OS_PATH}/current/scripts/show-console + sudo chmod a+x ${OS_PATH}/current/scripts/start-sim + + sudo chmod ug+rwx ${OS_PATH}/config + sudo chmod g+s ${OS_PATH}/config + sudo chmod 600 ${OS_PATH}/config/*.ini + sudo chmod 600 ${OS_PATH}/config/ROBUST/*.ini + sudo chmod ug+rwx ${OS_PATH}/etc + sudo chmod g+s ${OS_PATH}/etc + sudo chmod a+x ${OS_PATH}/config/*.shini + + chmod ug+rwx ${OS_PATH}/var/cache + chmod o-rwx ${OS_PATH}/var/cache + chmod g+s ${OS_PATH}/var/cache + +Build the OpenSim. +*/ + //////////////////////////////////////////////////////////////////////////////////////////////////// // Sort out directories. -- cgit v1.1