summaryrefslogtreecommitdiff
path: root/localserver/updateconfigs.sh
blob: a6f8a7373d97e335f0b6b9d180a05197984939f3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/bash

export VER=$(cat versions/confver 2>/dev/null)
export CONFDIR="../../server-data/"

if [[ -z "${VER}" ]]; then
    export VER="0"
    mkdir versions
fi

if [ "${VER}" -lt "1" ]; then
    cp -f ${CONFDIR}/conf/channels.conf ${CONFDIR}/conf/channels.conf.bak
    cp -f ${CONFDIR}/conf/channels.conf.base ${CONFDIR}/conf/channels.conf
    echo "1" >versions/confver
fi