View | Details | Raw Unified | Return to bug 18617
Collapse All | Expand All

(-)a/debian/scripts/koha-functions.sh (+2 lines)
Lines 199-204 is_plack_enabled() Link Here
199
       grep -q '^[[:space:]]*Include /etc/koha/apache-shared-intranet-plack.conf' \
199
       grep -q '^[[:space:]]*Include /etc/koha/apache-shared-intranet-plack.conf' \
200
            "$instancefile" ; then
200
            "$instancefile" ; then
201
        return 0
201
        return 0
202
    elif [ -e /var/lib/koha/$instancename/plack.enabled ]; then
203
        return 0
202
    else
204
    else
203
        return 1
205
        return 1
204
    fi
206
    fi
(-)a/debian/scripts/koha-plack (-1 / +2 lines)
Lines 154-159 enable_plack() Link Here
154
        # Uncomment the plack related lines for OPAC and intranet
154
        # Uncomment the plack related lines for OPAC and intranet
155
        sed -i 's:^\s*#\(\s*Include /etc/koha/apache-shared-opac-plack.conf\)$:\1:' "$instancefile"
155
        sed -i 's:^\s*#\(\s*Include /etc/koha/apache-shared-opac-plack.conf\)$:\1:' "$instancefile"
156
        sed -i 's:^\s*#\(\s*Include /etc/koha/apache-shared-intranet-plack.conf\)$:\1:' "$instancefile"
156
        sed -i 's:^\s*#\(\s*Include /etc/koha/apache-shared-intranet-plack.conf\)$:\1:' "$instancefile"
157
        touch /var/lib/koha/$instancename/plack.enabled
157
        [ "${quiet}" != "yes" ] && warn "Plack enabled for ${instancename}"
158
        [ "${quiet}" != "yes" ] && warn "Plack enabled for ${instancename}"
158
        return 0
159
        return 0
159
    else
160
    else
Lines 171-176 disable_plack() Link Here
171
        # Comment out the plack related lines for OPAC and intranet
172
        # Comment out the plack related lines for OPAC and intranet
172
        sed -i 's:^\(\s*Include /etc/koha/apache-shared-opac-plack.conf\)$:#\1:' "$instancefile"
173
        sed -i 's:^\(\s*Include /etc/koha/apache-shared-opac-plack.conf\)$:#\1:' "$instancefile"
173
        sed -i 's:^\(\s*Include /etc/koha/apache-shared-intranet-plack.conf\)$:#\1:' "$instancefile"
174
        sed -i 's:^\(\s*Include /etc/koha/apache-shared-intranet-plack.conf\)$:#\1:' "$instancefile"
175
        rm /var/lib/koha/$instancename/plack.enabled
174
        [ "${quiet}" != "yes" ] && warn "Plack disabled for ${instancename}"
176
        [ "${quiet}" != "yes" ] && warn "Plack disabled for ${instancename}"
175
        return 0
177
        return 0
176
    else
178
    else
177
- 

Return to bug 18617