Description: TODO: Put a short summary on the line above and replace this paragraph with a longer explanation of this change. Complete the meta-information with other relevant fields (see below for details). To make it easier, the information below has been extracted from the changelog. Adjust it or drop it. . jclic (0.2.1.0-1+lliurex13) precise; urgency=low . * Added lliurex-sgdb upgrade, if exists db, in zmd Author: Jaime Munyoz Fayos --- The information above should follow the Patch Tagging Guidelines, please checkout http://dep.debian.net/deps/dep3/ to learn about the format. Here are templates for supplementary fields that you might want to add: Origin: , Bug: Bug-Debian: http://bugs.debian.org/ Bug-Ubuntu: https://launchpad.net/bugs/ Forwarded: Reviewed-By: Last-Update: --- jclic-0.2.1.0.orig/zero-jclic.zlaunchers/zero-jclic.zmd +++ jclic-0.2.1.0/zero-jclic.zlaunchers/zero-jclic.zmd @@ -19,8 +19,13 @@ if [ "$RESULT" = "NO" ]; then exit 0 fi -#Crear la base de datos y el usuario -lliurex-sgbd --install jclic +#Crear la base de datos y el usuario, si no existe +resp=$(lliurex-sgbd --db_is_present jclic) +if [ "$resp" = "NO" ] ; then + lliurex-sgbd --install jclic +else + lliurex-sgbd --upgrade jclic +fi #Crear un fichero de inicialización touch /etc/.jclic.conf