-
Notifications
You must be signed in to change notification settings - Fork 426
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Installer] $ENV support, formatting, and optimizations (#1340)
* [Installer] $ENV support Add support for passing in installation variables instead of install_variables.txt. In particular: - EQEMU_SERVER_SKIP_UPDATE - EQEMU_SERVER_SKIP_MAPS_UPDATE Both work the same as files with the same name. - MYSQL_DATABASE - MYSQL_USER - MYSQL_PASSWORD All get read into the same $installation_variables collection, and are still overridden by any values found in installation_variables.txt - MYSQL_HOST Added to the list of $installation_variables, supported in installation_variables.txt, and overrides the default host for where the database lives (allowing it to be a separate container) - MYSQL_ROOT_PASSWORD If set, will use "root" as the user for DROP/CREATE DATABASE calls, to prevent requiring the "eq" user requiring more permission than is given by default with the MySql/MariaDB containers. * [Installer] new_server_with_bots Enabling bots requires both updated binaries and some database scripts. Fetching source and compiling the code is the longest part of setting up a new server. If you know you want bots, rather than having to do it twice, we can just accept an option to do it all at the same time. * [Installer] Git/Source/Build optimizations Source code is the same for bot/non-bot, so switch to a common directory for source and separate directories for build. If the source directory already exists with a .git subfolder, rather than attempt to re-clone, instead do a git pull to still get the latest code. Helps when using a shared volume but rebuilding containers. * [Installer] Formatting / Cleanup Fixed some indentation, added an existing option to the utility script output, removed some excess newlines, and moved a debug output to help identifying errors.
- Loading branch information
Showing
1 changed file
with
111 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters