source: zero-lliurex-installers/trunk/EPI_FILES/fuentes/zero-lliurex-ocrfeeder.install/usr/share/zero-lliurex-ocrfeeder/ocrfeeder_script @ 6740

Last change on this file since 6740 was 6740, checked in by jrpelegrina, 20 months ago

WIP in ocrfeeder zmd with EPI

  • Property svn:executable set to *
File size: 379 bytes
Line 
1#!/bin/bash
2
3
4ACTION="$1"
5PACKAGE_LIST="ocrfeeder tesseract-ocr tesseract-ocr-eng tesseract-ocr-osd tesseract-ocr-cat tesseract-ocr-spa"
6
7case $ACTION in
8        remove)
9
10                for ix in $PACKAGE_LIST 
11                do
12
13                        apt-get remove -y $ix
14                        TEST=$( dpkg-query -s  $ix 2> /dev/null| grep Status | cut -d " " -f 4 )
15                        if [ "$TEST" == 'installed' ];then
16                                exit 1
17                        fi
18                done           
19        ;;     
20esac
21exit 0
Note: See TracBrowser for help on using the repository browser.