From e79d9ad0618ea914ecb76f588e8281319f8c385b Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 13 Oct 2016 19:21:35 +0300 Subject: Add for local server configs version 3. --- localserver/conf/constants.conf | 30 ++++++++++++++++++++++++++++++ localserver/installconfigs.sh | 2 +- localserver/updateconfigs.sh | 7 ++++++- 3 files changed, 37 insertions(+), 2 deletions(-) create mode 100644 localserver/conf/constants.conf diff --git a/localserver/conf/constants.conf b/localserver/conf/constants.conf new file mode 100644 index 0000000..4562d0c --- /dev/null +++ b/localserver/conf/constants.conf @@ -0,0 +1,30 @@ +//================= Hercules Configuration ================================ +//= _ _ _ +//= | | | | | | +//= | |_| | ___ _ __ ___ _ _| | ___ ___ +//= | _ |/ _ \ '__/ __| | | | |/ _ \/ __| +//= | | | | __/ | | (__| |_| | | __/\__ \ +//= \_| |_/\___|_| \___|\__,_|_|\___||___/ +//================= License =============================================== +//= This file is part of Hercules. +//= http://herc.ws - http://github.com/HerculesWS/Hercules +//= +//= Copyright (C) 2014-2016 Hercules Dev Team +//= +//= Hercules 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 . +//========================================================================= +//= Battle local configuration file. +//========================================================================= + +debug: 0 diff --git a/localserver/installconfigs.sh b/localserver/installconfigs.sh index 5f8c7fa..3f403a4 100755 --- a/localserver/installconfigs.sh +++ b/localserver/installconfigs.sh @@ -8,4 +8,4 @@ cp conf/* $CONF cp -f conf/inter_conf.txt $CONF cp -f ${SD}/conf/channels.conf.base ${SD}/conf/channels.conf mkdir versions -echo "1" >versions/confver \ No newline at end of file +echo "3" >versions/confver diff --git a/localserver/updateconfigs.sh b/localserver/updateconfigs.sh index 89571b4..699c670 100755 --- a/localserver/updateconfigs.sh +++ b/localserver/updateconfigs.sh @@ -17,4 +17,9 @@ if [ "${VER}" -lt "2" ]; then rm ${CONFDIR}/conf/import/*.txt cp conf/* ${CONFDIR}/conf/import echo "2" >versions/confver -fi \ No newline at end of file +fi + +if [ "${VER}" -lt "3" ]; then + cp conf/constants.conf ${CONFDIR}/conf/import/ + echo "3" >versions/confver +fi -- cgit v1.2.3-70-g09d2