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

making sure opac and pmb files are the right ones

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.