change method to load environment

This commit is contained in:
AleaJactaEst 2018-07-26 09:36:10 +02:00
parent f01002afda
commit b427d1be75

View file

@ -60,17 +60,17 @@ Linux server build:
- /opt/servercontainer_init_mysql.sh - /opt/servercontainer_init_mysql.sh
- /opt/servercontainer_init_apache.sh - /opt/servercontainer_init_apache.sh
- /opt/servercontainer_init_configure_envi.sh - /opt/servercontainer_init_configure_envi.sh
# - source /home/gameserver/.bashrc # doesn't work, why ? - source /home/gameserver/.bashrc
- export -p KHANAT_HOME=/home/gameserver # - export -p KHANAT_HOME=/home/gameserver
- export -p KHANAT_PATH=/home/gameserver/khanat # - export -p KHANAT_PATH=/home/gameserver/khanat
- export -p PATH=$PATH:/usr/local/bin # - export -p PATH=$PATH:/usr/local/bin
- export -p PATCH_CLIENT_SYSTEM=$KHANAT_HOME/khanat/patch_service # - export -p PATCH_CLIENT_SYSTEM=$KHANAT_HOME/khanat/patch_service
- export -p DIRCLIENT="Khanat_Linux64" # - export -p DIRCLIENT="Khanat_Linux64"
- export -p PACKAGECLIENT="smokey_linux64" # - export -p PACKAGECLIENT="smokey_linux64"
- export -p PREPARE_CLIENT_DIR="khanat/prepare_client/$DIRCLIENT" # - export -p PREPARE_CLIENT_DIR="khanat/prepare_client/$DIRCLIENT"
- export -p CLIENT_DIR="khanat/client_service" # - export -p CLIENT_DIR="khanat/client_service"
- export -p HOME_PREPARE_CLIENT="$KHANAT_HOME/$PREPARE_CLIENT_DIR" # - export -p HOME_PREPARE_CLIENT="$KHANAT_HOME/$PREPARE_CLIENT_DIR"
- export -p HOME_CLIENT="$KHANAT_HOME/$CLIENT_DIR" # - export -p HOME_CLIENT="$KHANAT_HOME/$CLIENT_DIR"
- echo "KHANAT_PATH $KHANAT_PATH" - echo "KHANAT_PATH $KHANAT_PATH"
- mkdir -p $KHANAT_PATH - mkdir -p $KHANAT_PATH
- mkdir -p /home/gameserver/ext - mkdir -p /home/gameserver/ext
@ -83,14 +83,6 @@ Linux server build:
- for file in /opt/artefacts/code/build/bin/* ; do ln -s $file /usr/local/bin ; done - for file in /opt/artefacts/code/build/bin/* ; do ln -s $file /usr/local/bin ; done
- for file in /opt/artefacts/code/build/lib/* ; do ln -s $file /usr/local/lib ; done - for file in /opt/artefacts/code/build/lib/* ; do ln -s $file /usr/local/lib ; done
- ldconfig - ldconfig
#- /opt/ext/servercontainer_configure_link.sh
#- /opt/ext/servercontainer_configure_mysql.sh
#- /opt/ext/servercontainer_configure_apache.sh
#- /opt/ext/servercontainer_configure_world.sh
#- su -c '/opt/ext/servercontainer_configure_khanat.sh' gameserver
#- su -c '/opt/ext/servercontainer_configure_patch.sh' gameserver
#- su -c '/opt/ext/servercontainer_configure_launcher.sh' gameserver
#- su -c 'touch /home/gameserver/khanat/step_configure.ok' gameserver
- /opt/ext/servercontainer_configure_auto.sh - /opt/ext/servercontainer_configure_auto.sh
- /opt/ext/servercontainer_update_auto.sh - /opt/ext/servercontainer_update_auto.sh
# Clean # Clean