Skip to content

Commit

Permalink
opensipsdbctl: proper OpenSIPS version in command list
Browse files Browse the repository at this point in the history
  • Loading branch information
liviuchircu committed Mar 16, 2015
1 parent 73ae1a8 commit ceb3a11
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
3 changes: 2 additions & 1 deletion scripts/opensipsctl
Expand Up @@ -2807,8 +2807,9 @@ case $1 in
version)
echo "$0 $VERSION"
;;

*)
merr "$0: Uknown command - \"$1\""
usage
exit 1
;;
Expand Down
5 changes: 3 additions & 2 deletions scripts/opensipsdbctl
Expand Up @@ -279,8 +279,8 @@ case $1 in
exit 1
fi

minfo "MySQL DB migration tool for OpenSIPS 1.11.x\n\
------------------------------------------------------------"
minfo "MySQL DB migration tool for OpenSIPS 1.11.x databases\n\
----------------------------------------------------------------------"
mwarn "\
We recommend using this tool ONLY in order to upgrade an existing\n\
OpenSIPS 1.11.x MySQL database to 2.1 schema. Behaviour when automatically\n\
Expand Down Expand Up @@ -423,6 +423,7 @@ migrating earlier DB versions (1.8, 1.9, 1.10) to 2.1 is undefined"
echo "$0 $VERSION"
;;
*)
merr "$0: Uknown command - \"$1\""
usage
exit 1;
;;
Expand Down
4 changes: 2 additions & 2 deletions scripts/opensipsdbctl.base
Expand Up @@ -74,11 +74,11 @@ $0 $VERSION

usage: $COMMAND create <db name or db_path, optional> ...(creates a new database)
$COMMAND drop <db name or db_path, optional> .....(!entirely deletes tables!)
$COMMAND reinit <db name or db_path, optional> ...(!entirely deletes and than re-creates tables!)
$COMMAND reinit <db name or db_path, optional> ...(!entirely deletes and then re-creates tables!)
$COMMAND backup <file> ...........................(dumps current database to file)
$COMMAND restore <file> ..........................(restores tables from a file)
$COMMAND copy <new_db> ...........................(creates a new db from an existing one)
$COMMAND migrate <old_db> <new_db> ...............(migrates DB from 1.6.4 to 1.7)
$COMMAND migrate <old_db> <new_db> ...............(migrates DB from 1.11.x to 2.1.x)
$COMMAND presence ................................(adds the presence related tables)
$COMMAND extra ...................................(adds the extra tables)

Expand Down

0 comments on commit ceb3a11

Please sign in to comment.