Changeset 2914 for lliurex-openmeetings


Ignore:
Timestamp:
Nov 22, 2016, 12:36:53 PM (3 years ago)
Author:
Juanma
Message:

Zomando lliurex-openmeetings.zmd now also installs openmeetings if needed

Location:
lliurex-openmeetings/trunk/fuentes
Files:
2 added
2 edited

Legend:

Unmodified
Added
Removed
  • lliurex-openmeetings/trunk/fuentes/debian/changelog

    r2052 r2914  
     1lliurex-openmeetings (0.29) xenial; urgency=medium
     2
     3  * Zomando lliurex-openmeetings.zmd now also installs openmeetings if needed
     4
     5 -- Juanma Navarro Mañez <juanma1980@gmail.com>  Tue, 22 Nov 2016 12:32:48 +0100
     6
    17lliurex-openmeetings (0.28-lliurex2) xenial; urgency=medium
    28
  • lliurex-openmeetings/trunk/fuentes/zero-center-zlaunchers/lliurex-openmeetings.zmd

    r635 r2914  
    11#!/bin/bash
    22
     3export TEXTDOMAIN="zero-lliurex-openmeetings"
     4PACKAGE_LIST="/usr/share/lliurex-zero-installers/lliurex-openmeetings-packages"
     5PACKAGE_NAME="Lliurex-openmeetings"
     6MSG_ADVERTISEMENT=$(gettext "Do you want to install and configure Lliurex-openmeetings?")
     7MSG_OPENMEETINGS_INSTALL_PROBLEM=$(gettext "Lliurex-openmeetings has NOT been installed in your system. Please check the logs.")
     8MSG_OPENMEETINGS_INSTALLED=$(gettext "lliurex-openmeetings has been installed in your system. Now will launch the setup.")
     9HELP_PROGRESS_BAR="/tmp/help_lliurex-openmeetings.txt"
    310zero-center add-pulsating-color lliurex-openmeetings
    411
     12function need_install
     13{
     14        #Testeamos si todo está instalado, sino procedemos a instalar
     15        Lista=($(cat $PACKAGE_LIST | awk '{print $1}'))
     16        for i in "${LISTA[@]}"
     17        do
     18                TEST=${dokg-query -s $i 2> /dev/null|grep Status | cut -d " " -f 4)
     19                if ["$TEST" != 'installed' ]
     20                then
     21                        exit 1         
     22                fi
     23        done
     24}
     25
     26if [ need_install -eq 1 ]
     27then
     28        #Install the packages
     29        if zenity --question --title="$MSG_INSTALLING_PROGRESS" --width=500 --height=100 --text="$MSG_ADVERTISEMENT"
     30        then
     31                touch $HELP_PROGRESS_BAR
     32        else
     33                zero-center remove-pulsating-color lliurex-openmeetings
     34                exit 1
     35        fi
     36
     37        zero-reinstall-list "$PACKAGE_LIST" "$PACKAGE_NAME"
     38        if [ $? -ne 0 ]
     39        then
     40                echo "$MSG_OPENMEETINGS_INSTALL_PROBLEM"
     41                zenity --info --text="$MSG_OPENMEETINGS_INSTALL_PROBLEM" &
     42                rm $HELP_PROGRESS_BAR
     43                zero-center set-non-configured lliurex-openmeetings
     44                zero-center remove-pulsating-color lliurex-openmeetings
     45                exit 1
     46        fi
     47                zenity --info --title="Zenity-installer" --text="$MSG_OPENMEETINGS_INSTALLED" &
     48#       zero-center remove-pulsating-color install-pyromaths
     49#       zero-center set-configured install-pyromaths
     50fi
    551
    652lliurex-openmeetings-setup
    7 
    853
    954zero-center remove-pulsating-color lliurex-openmeetings
Note: See TracChangeset for help on using the changeset viewer.