mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-15 16:41:29 +00:00
Update install.sh [skip ci]
This commit is contained in:
parent
7836d020ce
commit
08bd335cdb
@ -54,36 +54,38 @@ export apt_options="-y -qq" # Set autoconfirm and silent install
|
|||||||
|
|
||||||
################################################################
|
################################################################
|
||||||
|
|
||||||
|
if [ ! -f ./install_variables.txt ]; then
|
||||||
|
|
||||||
read -n1 -r -p "Press any key to continue..." key
|
read -n1 -r -p "Press any key to continue..." key
|
||||||
|
#::: Setting up user environment (eqemu)
|
||||||
|
echo "First, we need to set your passwords..."
|
||||||
|
echo "Make sure that you remember these and keep them somewhere"
|
||||||
|
echo ""
|
||||||
|
echo ""
|
||||||
|
groupadd eqemu
|
||||||
|
useradd -g eqemu -d $eqemu_server_directory eqemu
|
||||||
|
passwd eqemu
|
||||||
|
|
||||||
#::: Setting up user environment (eqemu)
|
#::: Make server directory and go to it
|
||||||
echo "First, we need to set your passwords..."
|
mkdir $eqemu_server_directory
|
||||||
echo "Make sure that you remember these and keep them somewhere"
|
cd $eqemu_server_directory
|
||||||
echo ""
|
|
||||||
echo ""
|
|
||||||
groupadd eqemu
|
|
||||||
useradd -g eqemu -d $eqemu_server_directory eqemu
|
|
||||||
passwd eqemu
|
|
||||||
|
|
||||||
#::: Make server directory and go to it
|
#::: Setup MySQL root user PW
|
||||||
mkdir $eqemu_server_directory
|
read -p "Enter MySQL root (Database) password: " eqemu_db_root_password
|
||||||
cd $eqemu_server_directory
|
|
||||||
|
|
||||||
#::: Setup MySQL root user PW
|
#::: Write install variables (later use)
|
||||||
read -p "Enter MySQL root (Database) password: " eqemu_db_root_password
|
echo "mysql_root:$eqemu_db_root_password" > install_variables.txt
|
||||||
|
|
||||||
#::: Write install variables (later use)
|
#::: Setup MySQL server
|
||||||
echo "mysql_root:$eqemu_db_root_password" > install_variables.txt
|
read -p "Enter Database Name (single word, no special characters, lower case):" eqemu_db_name
|
||||||
|
read -p "Enter (Database) MySQL EQEmu Server username: " eqemu_db_username
|
||||||
|
read -p "Enter (Database) MySQL EQEmu Server password: " eqemu_db_password
|
||||||
|
|
||||||
#::: Setup MySQL server
|
#::: Write install variables (later use)
|
||||||
read -p "Enter Database Name (single word, no special characters, lower case):" eqemu_db_name
|
echo "mysql_eqemu_db_name:$eqemu_db_name" >> install_variables.txt
|
||||||
read -p "Enter (Database) MySQL EQEmu Server username: " eqemu_db_username
|
echo "mysql_eqemu_user:$eqemu_db_username" >> install_variables.txt
|
||||||
read -p "Enter (Database) MySQL EQEmu Server password: " eqemu_db_password
|
echo "mysql_eqemu_password:$eqemu_db_password" >> install_variables.txt
|
||||||
|
fi
|
||||||
#::: Write install variables (later use)
|
|
||||||
echo "mysql_eqemu_db_name:$eqemu_db_name" >> install_variables.txt
|
|
||||||
echo "mysql_eqemu_user:$eqemu_db_username" >> install_variables.txt
|
|
||||||
echo "mysql_eqemu_password:$eqemu_db_password" >> install_variables.txt
|
|
||||||
|
|
||||||
if [[ "$OS" == "Debian" ]]; then
|
if [[ "$OS" == "Debian" ]]; then
|
||||||
# Install pre-req packages
|
# Install pre-req packages
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user