source: jclic/trunk/fuentes/debian/patches/upgrade.patch @ 116

Last change on this file since 116 was 116, checked in by jrpelegrina, 5 years ago

First release to xenial

File size: 1.5 KB
  • zero-jclic.zlaunchers/zero-jclic.zmd

    Description: <short summary of the patch>
     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 <munyoz_jaifay@gva.es>
    
    ---
    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: <vendor|upstream|other>, <url of original patch>
    Bug: <url in upstream bugtracker>
    Bug-Debian: http://bugs.debian.org/<bugnumber>
    Bug-Ubuntu: https://launchpad.net/bugs/<bugnumber>
    Forwarded: <no|not-needed|url proving that it has been forwarded>
    Reviewed-By: <name and email of someone who approved the patch>
    Last-Update: <YYYY-MM-DD>
    
    old new if [ "$RESULT" = "NO" ]; then 
    1919        exit 0
    2020fi
    2121
    22 #Crear la base de datos y el usuario
    23 lliurex-sgbd --install jclic
     22#Crear la base de datos y el usuario, si no existe
     23resp=$(lliurex-sgbd --db_is_present jclic)
     24if [ "$resp" = "NO" ] ; then
     25        lliurex-sgbd --install jclic
     26else
     27        lliurex-sgbd --upgrade jclic
     28fi
    2429
    2530#Crear un fichero de inicialización
    2631touch /etc/.jclic.conf
Note: See TracBrowser for help on using the repository browser.