Bugzilla – Attachment 47401 Details for
Bug 15695
koha-plack script breaks installations set up before 3.22
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
the patch for koha-plack script
patch (text/plain), 2.25 KB, created by
philippe kloos
on 2016-01-28 18:33:32 UTC
(
hide
)
Description:
the patch for koha-plack script
Filename:
MIME Type:
Creator:
philippe kloos
Created:
2016-01-28 18:33:32 UTC
Size:
2.25 KB
patch
obsolete
>diff --git a/debian/scripts/koha-plack b/debian/scripts/koha-plack >index c0da9d1..db9aa43 100755 >--- a/debian/scripts/koha-plack >+++ b/debian/scripts/koha-plack >@@ -144,9 +144,9 @@ enable_plack() > local instancefile=$(get_apache_config_for "$instancename") > > if ! is_plack_enabled $instancename; then >- #Â Uncomment the plack related lines for OPAC and intranet >- sed -i 's:^\s*#\(\s*Include /etc/koha/apache-shared-opac-plack.conf\)$:\1:' "$instancefile" >- sed -i 's:^\s*#\(\s*Include /etc/koha/apache-shared-intranet-plack.conf\)$:\1:' "$instancefile" >+ #Â Define the instance name and add the plack related lines for OPAC and intranet >+ sed -i "s:^\(\s*\)\(Include /etc/koha/apache-shared-opac.conf\):\1\2\n# Generated by koha-plack script -- add plack-related stuff\n\1Define instance $instancename\n\1Include /etc/koha/apache-shared-opac-plack.conf:" "$instancefile" >+ sed -i "s:^\(\s*\)\(Include /etc/koha/apache-shared-intranet.conf\):\1\2\n# Generated by koha-plack script -- add plack-related stuff\n\1Define instance $instancename\n\1Include /etc/koha/apache-shared-intranet-plack.conf:" "$instancefile" > [ "${quiet}" != "yes" ] && warn "Plack enabled for ${instancename}" > return 0 > else >@@ -161,7 +161,11 @@ disable_plack() > local instancefile=$(get_apache_config_for "$instancename") > > if is_plack_enabled $instancename; then >+ #Â Remove the plack related lines for OPAC and intranet >+ perl -0777 -i -pe "s:# Generated by koha-plack script -- add plack-related stuff\n\s*Define instance $instancename\n\s*Include /etc/koha/apache-shared-opac-plack.conf::" "$instancefile" >+ perl -0777 -i -pe "s:# Generated by koha-plack script -- add plack-related stuff\n\s*Define instance $instancename\n\s*Include /etc/koha/apache-shared-intranet-plack.conf::" "$instancefile" > #Â Comment out the plack related lines for OPAC and intranet >+ # (keep these lines in case plack was enabled with the previous method) > sed -i 's:^\(\s*Include /etc/koha/apache-shared-opac-plack.conf\)$:#\1:' "$instancefile" > sed -i 's:^\(\s*Include /etc/koha/apache-shared-intranet-plack.conf\)$:#\1:' "$instancefile" > [ "${quiet}" != "yes" ] && warn "Plack disabled for ${instancename}"
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 15695
: 47401