source: zero-lliurex-installers/trunk/fuentes/zero-lliurex-pyromaths.zmds/zero-lliurex-pyromaths.zmd @ 3616

Last change on this file since 3616 was 3616, checked in by jrpelegrina, 3 years ago

Wip in rename zero-lliurex-analiytics, dvdcss, hotpotatoes

  • Property svn:executable set to *
File size: 1.6 KB
Line 
1#!/bin/bash
2
3#synaptic --hide-main-window --non-interactive  --set-selections-file /usr/share/lliurex-zero-installers/install-pyromaths
4#zero-center set-configured install-pyromaths
5#exit 0
6
7
8PACKAGE_LIST="/usr/share/zero-lliurex-installers/zero-lliurex-pyromaths"
9PACKAGE_NAME="Pyromaths"
10
11zero-center add-pulsating-color zero-lliurex-pyromaths
12zero-reinstall-list "$PACKAGE_LIST" "$PACKAGE_NAME"
13
14#Testeamos si todo se instalo como esperabamos, sino mostramos el error
15LISTA=( $( cat $PACKAGE_LIST | awk '{print $1}' ) )
16
17        for i in "${LISTA[@]}"; do
18                TEST=$( dpkg-query -s $i 2> /dev/null| grep Status | cut -d " " -f 4 )
19                if [ "$TEST" != 'installed' ]; then
20                        #zenity --info --title="Zero-installer" --text="Package $PACKAGE_NAME is not installed in your system, please retry again and test if you have acess to repositories in net, or contact with Lliurex Team at http://mestreacasa.gva.es/web/lliurex/forums" > /dev/null 2>&1 &
21                        su -c "notify-send -t 2000 -u critical -i /usr/share/icons/lliurex-neu/scalable/apps/zero-center.svg 'Zero-Installer' 'Package $PACKAGE_NAME is not installed in your system, please retry again or contact with Lliurex Team at http://mestreacasa.gva.es/web/lliurex/forums'" $USER
22                        zero-center remove-pulsating-color zero-lliurex-pyromaths
23                        zero-center set-non-configured zero-lliurex-pyromaths
24                        exit 1         
25                fi
26        done
27
28#zenity --info --title="Zenity-installer" --text="$PACKAGE_NAME is installed in your system, and you can see the resume in /tmp/zero-install.log" &
29zero-center remove-pulsating-color zero-lliurex-pyromaths
30zero-center set-configured zero-lliurex-pyromaths
31
32
33exit 0
Note: See TracBrowser for help on using the repository browser.