source: jclic/trunk/fuentes/debian/patches/zero-center2.patch @ 116

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

First release to xenial

File size: 4.1 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+lliurex23) precise; urgency=low
     .
       * New zero-center for platinum. Changes.
    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  
    44MSG_ERROR_MYSQL=$(gettext "You must install and run mysql")
    55MSG_NOCONFIGURE=$(gettext "Leaving unconfigured")
    66MSG_PASSWD=$(gettext "Administrator password for Jclic Reports: /etc/lliurex-sgbd/jclic.sgbd")
     7PACKAGE="lliurex-sgbd"
     8
     9
     10function test_install {
     11                #Testeamos si el paquete esta instalado, no haciendo nada en el caso afirmativo o instalandolo en el caso negativo.
     12                TEST=$( dpkg-query -s $1 2> /dev/null| grep Status | cut -d " " -f 4 )
     13                if [ "$TEST" = 'installed' ]; then
     14                        echo "Package $1 already installed, we have to uninstall it"
     15                        su -c "notify-send -t 2000 -u critical -i /usr/share/icons/lliurex-neu/scalable/apps/zero-center.svg 'Zero-Installer' '$1 is already installed in your system, now we are goig to remove it and install it again.'" $USER
     16                        zero-installer remove $1
     17                fi
     18
     19        }
     20
     21
     22
     23##############################MAIN###########################
     24
     25zero-center add-pulsating-color zero-jclic
     26
     27(
     28echo "# Updating Repositories...."
     29zero-repos-update
     30echo "20"
     31echo "Testing if package was installed in your system"
     32test_install "$PACKAGE"
     33echo "30"
     34echo "# Installing lliurex-sgbd...."
     35zero-installer install "$PACKAGE"
     36
    737
    8 apt-get update
    9 apt-get -y install lliurex-sgbd
    1038
    1139if [ $? -ne 0 ]; then
    1240        zenity --info --text="$MSG_NOCONFIGURE"
     41        zero-center remove-pulsating-color zero-jclic
    1342        exit 0
    1443fi
    1544
    1645#Testear el mysql
     46echo "40"
     47echo "# Testing mysql...."
    1748RESULT=$(mysql_root_passwd -a)
    1849if [ "$RESULT" = "NO" ]; then
    1950        zenity --error --text "$MSG_ERROR_MYSQL"
     51        zero-center remove-pulsating-color zero-jclic
    2052        exit 0
    2153fi
    2254
    2355#Inicializar mysql
     56echo "60"
     57echo "# Customing mysql....."
    2458mysql_root_passwd -i
    2559
    2660#Crear la base de datos y el usuario, si no existe
     
    3266fi
    3367
    3468#Crear un fichero de inicialización
     69echo "80"
     70echo "# Executing last scripts......."
    3571touch /etc/.jclic.conf
    3672cat > /etc/.jclic.conf << EOF
    3773*********************************************
    3874Creado al configurar con zero-center el jclic
    3975*********************************************
    4076EOF
     77sleep 1
     78) | zenity --progress --title="Jclic Report Server" --percentage=0 --auto-close --auto-kill --width="500" --no-cancel
     79
    4180
    42 zenity --warning --text="$MSG_PASSWD"
     81zenity --warning --text="$MSG_PASSWD" &
    4382
    4483#Deshabilitar después de configurar
    45 zero-sqlmanager -s zero-jclic 1
     84zero-center remove-pulsating-color zero-jclic
     85zero-center set-configured zero-jclic
    4686
    4787exit 0
  • zero-jclic.zlaunchers/zero-jclic.app

    old new  
    1414Groups=adm;admins;teachers
    1515Using=pe
    1616Service=True
     17Modal=True
    1718Locks=zero-jclic
Note: See TracBrowser for help on using the repository browser.