Changeset 5332


Ignore:
Timestamp:
Jun 23, 2017, 2:45:51 PM (18 months ago)
Author:
hectorgh
Message:

making sure opac and pmb files are the right ones

Location:
php5-lliurex-compat/fuentes/debian
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • php5-lliurex-compat/fuentes/debian/changelog

    r5253 r5332  
     1php5-lliurex-compat (0.6.1) xenial; urgency=high
     2
     3  * Making sure PMB and OPAC files are the right ones
     4
     5 -- Hector Garcia Huerta <hectorgh@gmail.com>  Fri, 23 Jun 2017 14:45:14 +0200
     6
    17php5-lliurex-compat (0.6) xenial; urgency=high
    28
  • php5-lliurex-compat/fuentes/debian/postinst

    r5255 r5332  
    5757        exit 1
    5858    fi
     59
     60    # MAKING SURE WE HAVE THE RIGHT PMB AND OPAC SITES
     61
     62    PMB_CONF=$(find /etc/apache2-lliurex* -name pmb.conf | grep available | xargs grep -i directory | cut -d: -f1 | head -n 1)
     63    OPAC_CONF=$(find /etc/apache2-lliurex* -name opac.conf | grep available | xargs grep -i directory | cut -d: -f1 | head -n 1)
     64
     65    if [ -n "$PMB_CONF" -a -n "$OPAC_CONF" ]; then
     66   
     67        cp $PMB_CONF /etc/apache2-lliurex/sites-available
     68        cp $OPAC_CONF /etc/apache2-lliurex/sites-available
     69
     70    fi
     71
     72   
     73
     74
    5975    sed -i -r 's/80( |$)/800/g' /etc/apache2-lliurex/ports.conf
    6076    sed -i -r 's/443( |$)/4430/g' /etc/apache2-lliurex/ports.conf
Note: See TracChangeset for help on using the changeset viewer.