summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2018-12-05 23:07:18 +0300
committerAndrei Karas <akaras@inbox.ru>2018-12-05 23:07:18 +0300
commit5220e94daf9c0d83724888ba37d7ca003874089d (patch)
tree3de582a8dcc9c94c09f6f606f0bf0e9a1dc7ee37
parenta1fbc952eb45338df09f1040db4f3d2b44beadca (diff)
downloadevol-tools-s20190123.tar.gz
evol-tools-s20190123.tar.bz2
evol-tools-s20190123.tar.xz
evol-tools-s20190123.zip
Change configuration version to 5.s20190123
Update channels.conf
-rwxr-xr-xlocalserver/installconfigs.sh2
-rwxr-xr-xlocalserver/updateconfigs.sh6
2 files changed, 7 insertions, 1 deletions
diff --git a/localserver/installconfigs.sh b/localserver/installconfigs.sh
index 095c074..398c02a 100755
--- a/localserver/installconfigs.sh
+++ b/localserver/installconfigs.sh
@@ -9,4 +9,4 @@ cp conf/* $CONF
cp -f ${SD}/conf/channels.conf.base ${SD}/conf/channels.conf
cp -f npc/motd-* ${NPC}/commands/
mkdir versions
-echo "4" >versions/confver
+echo "5" >versions/confver
diff --git a/localserver/updateconfigs.sh b/localserver/updateconfigs.sh
index dc804b8..8c2688c 100755
--- a/localserver/updateconfigs.sh
+++ b/localserver/updateconfigs.sh
@@ -28,3 +28,9 @@ if [ "${VER}" -lt "4" ]; then
cp -f npc/motd-* ${CONFDIR}/npc/commands/
echo "4" >versions/confver
fi
+
+if [ "${VER}" -lt "5" ]; then
+ cp -f ${CONFDIR}/conf/channels.conf ${CONFDIR}/conf/channels.conf.bak
+ cp -f ${CONFDIR}/conf/channels.conf.base ${CONFDIR}/conf/channels.conf
+ echo "5" >versions/confver
+fi