source: lliurex-openmeetings/trunk/fuentes/zero-center-zlaunchers/usr/share/zero-center/zmds/lliurex-openmeetings.zmd @ 2916

Last change on this file since 2916 was 2916, checked in by Juanma, 3 years ago

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

File size: 1.8 KB
Line 
1#!/bin/bash
2
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"
10zero-center add-pulsating-color lliurex-openmeetings
11
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
51
52lliurex-openmeetings-setup
53
54zero-center remove-pulsating-color lliurex-openmeetings
55zero-center set-configured lliurex-openmeetings
56
57exit 0
58
Note: See TracBrowser for help on using the repository browser.