mirror of
https://port.numenaute.org/aleajactaest/khanat-code-old.git
synced 2024-11-10 01:09:34 +00:00
50 lines
1.6 KiB
Bash
Executable file
50 lines
1.6 KiB
Bash
Executable file
#!/bin/bash
|
|
#
|
|
# Configure environment
|
|
#
|
|
# Copyright (C) 2017 AleaJactaEst
|
|
#
|
|
# This program is free software: you can redistribute it and/or modify
|
|
# it under the terms of the GNU General Public License as published by
|
|
# the Free Software Foundation, either version 3 of the License, or
|
|
# (at your option) any later version.
|
|
#
|
|
# This program is distributed in the hope that it will be useful,
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
# GNU General Public License for more details.
|
|
#
|
|
# You should have received a copy of the GNU General Public License
|
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
|
|
echo "CONFIGURE ENVIRONMENT"
|
|
|
|
# configure environment
|
|
cat << EOF > /opt/shard.sh
|
|
export KHANAT_HOME=/home/gameserver
|
|
export KHANAT_PATH=/home/gameserver/khanat
|
|
export PATH=\$PATH:/usr/local/bin:/usr/local/sbin:\$KHANAT_PATH/tools/scripts/linux
|
|
export KHANAT_DATA=/home/gameserver/khanat-ressources
|
|
export PATCH_HOME=/home/gameserver
|
|
export PATCH_CLIENT_SYSTEM=\$PATCH_HOME/patch_service
|
|
EOF
|
|
|
|
# configure environment
|
|
cat << EOF > /home/gameserver/.bashrc
|
|
export KHANAT_HOME=/home/gameserver
|
|
export KHANAT_PATH=/home/gameserver/khanat
|
|
export PATH=\$PATH:/usr/local/bin:\$KHANAT_PATH/tools/scripts/linux
|
|
export KHANAT_DATA=/home/gameserver/khanat-ressources
|
|
export PATCH_HOME=/home/gameserver
|
|
export PATCH_CLIENT_SYSTEM=\$PATCH_HOME/patch_service
|
|
EOF
|
|
|
|
# load environment
|
|
source /home/gameserver/.bashrc
|
|
|
|
# Initialize ssh
|
|
/etc/init.d/ssh restart
|
|
|
|
|
|
|