+
Account | +Password | +Where | +Comment | +
---|---|---|---|
gameserver | +khanat | +ssh | +server access | +
root | ++ | phpmyadmin | +(no password) | +
admin | +admin | +khanat | +account (administration) | +
tester | +tester | +khanat | +account (player) | +
PHP :
+ + diff --git a/server/common/rootweb/prepare_environment_container_64.sh b/server/common/rootweb/prepare_environment_container_64.sh new file mode 100644 index 0000000..8e5b1a7 --- /dev/null +++ b/server/common/rootweb/prepare_environment_container_64.sh @@ -0,0 +1,33 @@ +#!/bin/bash + +declare IMAGEKHANATSERVER="opennel/servercontainer_debian_stretch_x86_64" + +mkdir -p $HOME/Public + +echo "$(date "+%Y/%m/%d %H:%M:%S") Get ip address server khanat" +listcontainer="$(docker ps -qf 'status=running' -f 'ancestor='"${IMAGEKHANATSERVER}"'')" +if [[ ${#listcontainer[@]} -eq 1 ]] +then + ipaddress=$(docker inspect --format="{{ .NetworkSettings.IPAddress }}" ${listcontainer[@]}) +fi + +echo "$(date "+%Y/%m/%d %H:%M:%S") get client package" +wget http://$ipaddress/client/smokey_linux64.tar.gz -O smokey_linux64.tar.gz + +echo "$(date "+%Y/%m/%d %H:%M:%S") clean old client" +if [[ -d Khanat_Linux64 ]] +then + rm -rf Khanat_Linux64 || exit 2 +fi + +echo "$(date "+%Y/%m/%d %H:%M:%S") install new client" +#7z x -y $SRCKHANATCLIENT || exit 2 +#7z x -y -oKhanat_Linux64 $SRCKHANATCLIENTDEBUG || exit 2 +tar xvzf smokey_linux64.tar.gz || exit 2 + +echo "$(date "+%Y/%m/%d %H:%M:%S") configure client" +sed -i 's/lirria.khaganat.net/'$ipaddress'/g' Khanat_Linux64/client_default.cfg +echo -en "Client khanat installed & configured\nGo to Khanat_Linux64 directory and launch client\n" +echo -en "(cd Khanat_Linux64;./khanat_client)\n" + + diff --git a/server/debian/common/servercontainer_configure_apache.sh b/server/debian/common/servercontainer_configure_apache.sh index 2920128..8a0b998 100755 --- a/server/debian/common/servercontainer_configure_apache.sh +++ b/server/debian/common/servercontainer_configure_apache.sh @@ -97,7 +97,6 @@ chown_gameserver '/home/gameserver/log/apache2/error.log' || exit 2 touch /home/gameserver/log/apache2/other_vhosts_access.log || exit 2 chown_gameserver '/home/gameserver/log/apache2/other_vhosts_access.log' || exit 2 - ##################### # Start & Stop apache2 ##################### diff --git a/server/debian/common/servercontainer_configure_patch.sh b/server/debian/common/servercontainer_configure_patch.sh index 487c3f1..9ba74a1 100755 --- a/server/debian/common/servercontainer_configure_patch.sh +++ b/server/debian/common/servercontainer_configure_patch.sh @@ -237,6 +237,11 @@ wait_all_job || exit 2 #################################### msg_info "[$(basename $0):$LINENO] Prepare Patch" +# TODO - if ryzom.xml exist what's command to update (replace patch_gen createNewProduct) +if [ -f $PATCH_CLIENT_SYSTEM/patch_game/ryzom.xml ] +then + mv $PATCH_CLIENT_SYSTEM/patch_game/ryzom.xml $PATCH_CLIENT_SYSTEM/patch_game/ryzom.xml.old || exit 2 +fi cd $PATCH_CLIENT_SYSTEM;patch_gen createNewProduct patch_game/ryzom.xml 2>$KHANAT_HOME/log/configure/patch_createNewProduct.err 1>$KHANAT_HOME/log/configure/patch_createNewProduct.out || exit 2 cd $PATCH_CLIENT_SYSTEM;touch patch_game/Lirria.version || exit 2 sed -i -r 's/value="main"/value="khanat_lirria"/g' $PATCH_CLIENT_SYSTEM/patch_game/ryzom.xml || exit 2 diff --git a/server/debian/common/servercontainer_init_apache.sh b/server/debian/common/servercontainer_init_apache.sh index e9e7f91..b858c9c 100755 --- a/server/debian/common/servercontainer_init_apache.sh +++ b/server/debian/common/servercontainer_init_apache.sh @@ -86,6 +86,13 @@ cp /etc/phpmyadmin/config.inc.php /etc/phpmyadmin/config.inc.php.ref || exit 2 awk '{if($0 ~ /AllowNoPassword/){$1="";}; print $0;}' /etc/phpmyadmin/config.inc.php.ref > /etc/phpmyadmin/config.inc.php || exit 2 +#################################### +# Configure 1st page +#################################### +msg_debug "Configure 1st page" +create_dir_gameserver '/home/gameserver/rootweb' +cp /opt/rootweb/* /home/gameserver/rootweb/ || exit 2 + #################################### # configure phpmyadmin #################################### @@ -94,7 +101,7 @@ msg_debug "configure apache" cat << EOF > /etc/apache2/sites-available/000-default.conf # Default