|
Lines 178-185
enable_plack()
Link Here
|
| 178 |
|
178 |
|
| 179 |
if ! is_plack_enabled $instancename; then |
179 |
if ! is_plack_enabled $instancename; then |
| 180 |
# Uncomment the plack related lines for OPAC and intranet |
180 |
# Uncomment the plack related lines for OPAC and intranet |
| 181 |
sed -i 's:^\s*#\(\s*Include /etc/koha/apache-shared-opac-plack.conf\)$:\1:' "$instancefile" |
181 |
sed -i 's:^\s*#\(\s*Include /etc/koha/apache-shared-opac-plack.conf\)$:\1:;q1' "$instancefile" \ |
| 182 |
sed -i 's:^\s*#\(\s*Include /etc/koha/apache-shared-intranet-plack.conf\)$:\1:' "$instancefile" |
182 |
|| { warn "Cannot enable plack for opac - update your apache config files" && return 1; } |
|
|
183 |
sed -i 's:^\s*#\(\s*Include /etc/koha/apache-shared-intranet-plack.conf\)$:\1:;q1' "$instancefile" \ |
| 184 |
|| { warn "Cannot enable plack for intranet -- update your apache config files" && return 1; } |
| 183 |
[ "${quiet}" != "yes" ] && warn "Plack enabled for ${instancename}" |
185 |
[ "${quiet}" != "yes" ] && warn "Plack enabled for ${instancename}" |
| 184 |
return 0 |
186 |
return 0 |
| 185 |
else |
187 |
else |
|
Lines 195-202
disable_plack()
Link Here
|
| 195 |
|
197 |
|
| 196 |
if is_plack_enabled $instancename; then |
198 |
if is_plack_enabled $instancename; then |
| 197 |
# Comment out the plack related lines for OPAC and intranet |
199 |
# Comment out the plack related lines for OPAC and intranet |
| 198 |
sed -i 's:^\(\s*Include /etc/koha/apache-shared-opac-plack.conf\)$:#\1:' "$instancefile" |
200 |
sed -i 's:^\(\s*Include /etc/koha/apache-shared-opac-plack.conf\)$:#\1:;q1' "$instancefile" \ |
| 199 |
sed -i 's:^\(\s*Include /etc/koha/apache-shared-intranet-plack.conf\)$:#\1:' "$instancefile" |
201 |
|| { warn "Cannot disable plack for opac - update your apache config files" && return 1; } |
|
|
202 |
sed -i 's:^\(\s*Include /etc/koha/apache-shared-intranet-plack.conf\)$:#\1:;q1' "$instancefile" \ |
| 203 |
|| { warn "Cannot disable plack for intranet - update your apache config files" && return 1; } |
| 200 |
[ "${quiet}" != "yes" ] && warn "Plack disabled for ${instancename}" |
204 |
[ "${quiet}" != "yes" ] && warn "Plack disabled for ${instancename}" |
| 201 |
return 0 |
205 |
return 0 |
| 202 |
else |
206 |
else |
| 203 |
- |
|
|