swap symlinks for mariadb with mysql
add extra wip scripts
This commit is contained in:
parent
50266b0f2e
commit
8fb3726089
|
@ -1 +0,0 @@
|
|||
mysql/
|
|
@ -0,0 +1 @@
|
|||
mariadb/
|
|
@ -0,0 +1,43 @@
|
|||
#!/bin/bash
|
||||
|
||||
set -eux
|
||||
|
||||
DATE_STAMP=$(date '+%s')
|
||||
|
||||
apt -y install build-essential checkinstall libncurses5 git curl wget libnewt-dev libssl-dev libncurses5-dev subversion libsqlite3-dev libjansson-dev libxml2-dev uuid-dev default-libmysqlclient-dev
|
||||
|
||||
mkdir asterisk-${DATE_STAMP:-fail}
|
||||
|
||||
cd asterisk-${DATE_STAMP:-fail}
|
||||
|
||||
mkdir build
|
||||
|
||||
wget http://downloads.asterisk.org/pub/telephony/asterisk/asterisk-18-current.tar.gz \
|
||||
-O asterisk-18-current.tar.gz --show-progress
|
||||
|
||||
cd build
|
||||
|
||||
tar xf ../asterisk-18-current.tar.gz
|
||||
|
||||
cd asterisk*
|
||||
|
||||
# Main build bit.
|
||||
./contrib/scripts/get_mp3_source.sh
|
||||
|
||||
contrib/scripts/install_prereq install
|
||||
|
||||
./configure
|
||||
|
||||
make
|
||||
|
||||
#sudo checkinstall --default --pkgname asterisk --addso=yes make install config samples
|
||||
|
||||
echo "Install Asterisk and kitchen sink (everything)?"
|
||||
read
|
||||
|
||||
make install
|
||||
make samples
|
||||
make config
|
||||
ldconfig
|
||||
|
||||
exit 0;
|
|
@ -0,0 +1,27 @@
|
|||
#!/bin/bash
|
||||
|
||||
set -eux
|
||||
|
||||
DATE_STAMP=$(date '+%s')
|
||||
|
||||
apt install asterisk asterisk-dev libasound2-dev build-essential git
|
||||
|
||||
mkdir asterisk-chan-quectel-${DATE_STAMP}
|
||||
|
||||
cd asterisk-chan-quectel-${DATE_STAMP}
|
||||
|
||||
mkdir build
|
||||
|
||||
cd build
|
||||
|
||||
git clone https://github.com/IchthysMaranatha/asterisk-chan-quectel.git .
|
||||
|
||||
./bootstrap
|
||||
|
||||
INSTALLED_AST_VERSION=$(asterisk -V | cut -d " " -f 2)
|
||||
|
||||
./configure --with-astversion=${INSTALLED_AST_VERSION}
|
||||
|
||||
make
|
||||
|
||||
make install
|
Loading…
Reference in New Issue