Browse Source

create the database

drop_requests
lazedo 8 years ago
parent
commit
ba434e7848
4 changed files with 15 additions and 0 deletions
  1. +3
    -0
      kamailio/db_scripts/create-kazoodb-sql.sh
  2. +6
    -0
      kamailio/db_scripts/db_kazoo-spectific
  3. +3
    -0
      kamailio/db_scripts/mysql-spectific
  4. +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


Loading…
Cancel
Save