Fix packaging to uncompress freeswitch config

This commit is contained in:
DanB
2014-01-18 09:12:59 +01:00
parent e97b72a30a
commit abd0a00ecb

View File

@@ -1,18 +1,14 @@
#! /usr/bin/env sh
if [ -z "$1" ]
then
echo ""
echo "Package version not provided, exiting ..."
echo ""
exit 0
fi
WORK_DIR=/tmp/cgrates_$1
WORK_DIR=/tmp/cgrates
rm -rf $WORK_DIR
mkdir -p $WORK_DIR
cp -r debian $WORK_DIR/debian
cd $WORK_DIR
git clone https://github.com/cgrates/cgrates.git src/github.com/cgrates/cgrates
tar xvzf src/github.com/cgrates/cgrates/data/tutorials/fs_csv/freeswitch/etc/freeswitch_conf.tar.gz
rm src/github.com/cgrates/cgrates/data/tutorials/fs_csv/freeswitch/etc/freeswitch_conf.tar.gz
tar xvzf src/github.com/cgrates/cgrates/data/tutorials/fs_json/freeswitch/etc/freeswitch_conf.tar.gz
rm src/github.com/cgrates/cgrates/data/tutorials/fs_json/freeswitch/etc/freeswitch_conf.tar.gz
dpkg-buildpackage -us -uc
rm -rf $WORK_DIR
#rm -rf $WORK_DIR