Update DMRIDUpdate.sh
Registration system transfered to RadioID.net
This commit is contained in:
parent
af63f8e8db
commit
f279184af9
|
@ -53,7 +53,7 @@ DMRIDPATH=/path/to/DMR/ID/file
|
||||||
DMRIDFILE=${DMRIDPATH}/DMRIds.dat
|
DMRIDFILE=${DMRIDPATH}/DMRIds.dat
|
||||||
|
|
||||||
# DMR-MARC.net has discontinued real time access. Now they offer a nightly dump instead.
|
# DMR-MARC.net has discontinued real time access. Now they offer a nightly dump instead.
|
||||||
DATABASEURL='https://www.dmr-marc.net/static/users.csv'
|
DATABASEURL='https://radioid.net/static/users.csv'
|
||||||
|
|
||||||
#
|
#
|
||||||
# How many DMR ID files do you want backed up (0 = do not keep backups)
|
# How many DMR ID files do you want backed up (0 = do not keep backups)
|
||||||
|
@ -95,7 +95,7 @@ then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Generate new file
|
# Generate new file
|
||||||
curl ${DATABASEURL} 2>/dev/null | sed -e 's/\t//g' | awk -F"," '/,/{gsub(/ /, "", $2); printf "%s\t%s\t%s\n", $1, $2, $3}' | sed -e 's/\(.\) .*/\1/g' > ${DMRIDPATH}/DMRIds.tmp
|
curl -k ${DATABASEURL} 2>/dev/null | sed -e 's/\t//g' | awk -F"," '/,/{gsub(/ /, "", $2); printf "%s\t%s\t%s\n", $1, $2, $3}' | sed -e 's/\(.\) .*/\1/g' > ${DMRIDPATH}/DMRIds.tmp
|
||||||
NUMOFLINES=$(wc -l ${DMRIDPATH}/DMRIds.tmp | awk '{print $1}')
|
NUMOFLINES=$(wc -l ${DMRIDPATH}/DMRIds.tmp | awk '{print $1}')
|
||||||
if [ $NUMOFLINES -gt 1 ]
|
if [ $NUMOFLINES -gt 1 ]
|
||||||
then
|
then
|
||||||
|
|
Loading…
Reference in a new issue