Browse Source

Heredoc to prevent the prompt when initting the db

4.2
swysor 8 years ago
parent
commit
c7d97d3215
1 changed files with 5 additions and 1 deletions
  1. +5
    -1
      system/sbin/kazoo-kamailio

+ 5
- 1
system/sbin/kazoo-kamailio View File

@ -43,7 +43,7 @@ prepare() {
fi
fi
if [ ! -f /etc/kazoo/kamailio/db/kazoo.db ]; then
KazooDB -init /etc/kazoo/kamailio/kazoodb.sql
init_database
fi
chown -R ${USER} /etc/kazoo/kamailio/db
RETVAL=$?
@ -59,6 +59,10 @@ mount_point_exists() {
return $?
}
init_database() {
KazooDB -init /etc/kazoo/kamailio/kazoodb.sql <<DONE
DONE
}
start() {


Loading…
Cancel
Save