source: lliurex-dgti-conf-acroread/trunk/fuentes/lliurex-dgti-conf-acroread-9.install-files/usr/share/lliurex-gva-inicio/acroread-inicio.sh @ 998

Last change on this file since 998 was 998, checked in by mabarracus, 5 years ago

Copy trusty code

File size: 961 bytes
Line 
1#!/bin/bash
2
3PATH_TO_HOME=$(xdg-user-dir)
4PATH_TO_CERT=${PATH_TO_HOME}/.adobe/Acrobat/9.0
5CURL_PATH="/etc/skel/.adobe/Acrobat/9.0/Cert/curl-ca-bundle.crt"
6ADDRESS_PATH="/etc/skel/.adobe/Acrobat/9.0/Security/addressbook.acrodata"
7
8logger -t lliurex-dgti-conf-acroread "Exists file cert in adobe"
9
10if [ ! -d ${PATH_TO_CERT} ];then
11        #echo "No existe el directorio, lo creo"
12        #echo
13        cp -pr /etc/skel/.adobe ${PATH_TO_HOME}
14        logger -t lliurex-dgti-conf-acroread "Copying directory .adobe in user home"
15fi
16
17if [ ! -f ${PATH_TO_CERT}/Cert/curl-ca-bundle.crt ];then 
18        #echo
19        #echo "No existe el certificado, lo copio"
20        cp -f ${CURL_PATH} ${PATH_TO_CERT}/Cert
21        cp -f ${ADDRESS_PATH} ${PATH_TO_CERT}/Security
22        logger -t lliurex-dgti-conf-acroread "Copying file cert in /home_dir/.adobe"
23        #echo
24        #echo "Cambio los permisos a los ficheros"
25        #echo
26        chmod 777 ${PATH_TO_CERT}/Cert/curl-ca-bundle.crt
27        chmod 777 ${PATH_TO_CERT}/Security/addressbook.acrodata
28fi
Note: See TracBrowser for help on using the repository browser.