summaryrefslogtreecommitdiff
path: root/localserver
diff options
context:
space:
mode:
Diffstat (limited to 'localserver')
-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