Changeset 2921 for lliurex-openmeetings


Ignore:
Timestamp:
Nov 22, 2016, 2:41:22 PM (3 years ago)
Author:
Juanma
Message:

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

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

Legend:

Unmodified
Added
Removed
  • lliurex-openmeetings/trunk/fuentes/lliurex-openmeetings-installer/usr/share/lliurex-zero-installers/lliurex-openmeetings-packages

    r2920 r2921  
     1lliurex-openmeetings
    12lliurex-openmeetings-data
    23lliurex-openmeetings-common
  • lliurex-openmeetings/trunk/fuentes/zero-center-zlaunchers/lliurex-openmeetings.zmd

    r2920 r2921  
    1010zero-center add-pulsating-color lliurex-openmeetings
    1111
    12 function need_install
     12need_install ()
    1313{
    1414        #Testeamos si todo está instalado, sino procedemos a instalar
    15         Lista=($(cat $PACKAGE_LIST | awk '{print $1}'))
     15        LISTA=( $( cat $PACKAGE_LIST | awk '{print $1}' ) )
    1616        for i in "${LISTA[@]}"
    1717        do
    18                 TEST=${dpkg-query -s $i 2> /dev/null|grep Status | cut -d " " -f 4}
    19                 if ["$TEST" != 'installed' ]
     18                TEST=$( dpkg-query -s $i 2> /dev/null| grep Status | cut -d " " -f 4 )
     19                if [ "$TEST" != 'installed' ]
    2020                then
    21                         exit 1         
     21                        return 1
    2222                fi
    2323        done
    2424}
    25 
    26 if [[ need_install -eq 1 ]]
     25need_install
     26if [ $? -eq 1 ]
    2727then
    2828        #Install the packages
Note: See TracChangeset for help on using the changeset viewer.