Star2Billing/cdr-stats — Issue #8: install-cdr-stats.sh missing $VERSION reference
Author: sdjernes
Created: 2012-01-16 23:40:17+00:00
State: open

The following section of the script should be corrected to change the hard coded refference to master to $VERSION as shown below.

echo "Install CDR-Stats..."
mkdir /usr/share/django_app/
cd /usr/src/
wget --no-check-certificate https://github.com/Star2Billing/cdr-stats/tarball/$VERSION
mv $VERSION Star2Billing-cdr-stats-$VERSION.tar.gz
tar xvzf Star2Billing-cdr-stats-*.tar.gz
rm -rf Star2Billing-cdr-stats-*.tar.gz
mv cdr-stats cdr-stats_$DATETIME
mv Star2Billing-cdr-stats-* cdr-stats
mv /usr/share/django_app/cdr_stats archive_cdr-stats-$DATETIME
ln -s /usr/src/cdr-stats/cdr_stats /usr/share/django_app/cdr_stats