Lines 29-47
fi
Link Here
|
29 |
|
29 |
|
30 |
disable_instance() |
30 |
disable_instance() |
31 |
{ |
31 |
{ |
32 |
local site=$1 |
32 |
local instancename=$1 |
33 |
local instancefile=$(get_apache_config_for $site) |
33 |
local instancefile=$(get_apache_config_for "$instancename") |
34 |
|
34 |
|
35 |
if [ "$instancefile" = ""]; then |
35 |
if [ "$instancefile" = "" ]; then |
36 |
return 2 |
36 |
echo 2 |
37 |
fi |
37 |
elif is_enabled $instancename; then |
38 |
|
38 |
sed -i 's:^\s*#\(\s*Include /etc/koha/apache-shared-disable.conf\)$:\1:' "$instancefile" |
39 |
if is_enabled $instancename; then |
39 |
echo 0 |
40 |
sed -i 's:^\s*#\(\s*Include /etc/koha/apache-shared-disable.conf\)$:\1:' \ |
|
|
41 |
"$instancefile" |
42 |
return 0 |
43 |
else |
40 |
else |
44 |
return 1 |
41 |
echo 1 |
45 |
fi |
42 |
fi |
46 |
} |
43 |
} |
47 |
|
44 |
|
Lines 60-66
EOF
Link Here
|
60 |
[ $# -ge 1 ] || ( usage ; die "Missing instance name..." ) |
57 |
[ $# -ge 1 ] || ( usage ; die "Missing instance name..." ) |
61 |
|
58 |
|
62 |
restart_apache="no" |
59 |
restart_apache="no" |
63 |
|
|
|
64 |
for name in "$@" |
60 |
for name in "$@" |
65 |
do |
61 |
do |
66 |
if is_instance $name ; then |
62 |
if is_instance $name ; then |
67 |
- |
|
|