Last change
on this file since 1277 was
1277,
checked in by jrpelegrina, 4 years ago
|
WIP in compatibility with php5-lliurex
|
File size:
750 bytes
|
Line | |
---|
1 | #!/bin/sh |
---|
2 | |
---|
3 | # postinstall code commented |
---|
4 | # pmb configured with lliurex-zero-pmb |
---|
5 | set -e |
---|
6 | opac_file="/etc/apache2-lliurex/sites-available/opac" |
---|
7 | pmb_file="/etc/apache2-lliurex/sites-available/pmb" |
---|
8 | case "$1" in |
---|
9 | configure) |
---|
10 | if [ -f $opac_file ]; then |
---|
11 | sed -i '/AddDefaultCharset utf-8/d' $opac_file |
---|
12 | #service apache2-lliurex force-reload || true |
---|
13 | systemctl restart apache2-lliurex || true |
---|
14 | fi |
---|
15 | if [ -f $pmb_file ]; then |
---|
16 | sed -i '/AddDefaultCharset utf-8/d' $pmb_file |
---|
17 | #service apache2-lliurex force-reload || true |
---|
18 | systemctl restart apache2-lliurex || true |
---|
19 | fi |
---|
20 | ;; |
---|
21 | |
---|
22 | abort-upgrade|abort-remove|abort-deconfigure) |
---|
23 | ;; |
---|
24 | |
---|
25 | *) |
---|
26 | echo "postinst called with unknown argument \`$1'" >&2 |
---|
27 | exit 1 |
---|
28 | ;; |
---|
29 | esac |
---|
30 | |
---|
31 | #DEBHELPER# |
---|
32 | |
---|
33 | exit 0 |
---|
34 | |
---|
35 | |
---|
Note: See
TracBrowser
for help on using the repository browser.