This website works better with JavaScript.
Home
Explore
Help
Sign In
ruhnet
/
kazoo-configs-kamailio
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Projects
0
Releases
183
Wiki
Activity
Browse Source
create the database
drop_requests
lazedo
8 years ago
parent
d576a476ff
commit
ba434e7848
4 changed files
with
15 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+3
-0
kamailio/db_scripts/create-kazoodb-sql.sh
+6
-0
kamailio/db_scripts/db_kazoo-spectific
+3
-0
kamailio/db_scripts/mysql-spectific
+3
-0
kamailio/db_scripts/postgres-spectific
+ 3
- 0
kamailio/db_scripts/create-kazoodb-sql.sh
View File
@ -93,4 +93,7 @@ sql_all_extra_tables >> $RESULTED_SQL
sql_extra_tables >>
$RESULTED_SQL
sql_footer >>
$RESULTED_SQL
sql_all_footer >>
$RESULTED_SQL
sql_setup
$RESULTED_SQL
exit
0
+ 6
- 0
kamailio/db_scripts/db_kazoo-spectific
View File
@ -10,6 +10,12 @@ PRAGMA journal_mode=WAL;
EOF
}
sql_setup() {
DB_KAZOO_LOCATION=${DB_KAZOO_LOCATION:-/etc/kamailio/db}
mkdir -p ${DB_KAZOO_LOCATION}
KazooDB ${DB_KAZOO_LOCATION}/kazoo.db < $1
}
sql_header() {
cat << EOF
EOF
+ 3
- 0
kamailio/db_scripts/mysql-spectific
View File
@ -5,6 +5,9 @@ cat << EOF
EOF
}
sql_setup() {
}
sql_header() {
cat << EOF
EOF
+ 3
- 0
kamailio/db_scripts/postgres-spectific
View File
@ -5,6 +5,9 @@ cat << EOF
EOF
}
sql_setup() {
}
sql_header() {
cat << EOF
EOF
Write
Preview
Loading…
Cancel
Save