Lines 123-128
dump_instance()
Link Here
|
123 |
output="$output to $metadump" |
123 |
output="$output to $metadump" |
124 |
[ "$quiet" = "no" ] && echo "$output" |
124 |
[ "$quiet" = "no" ] && echo "$output" |
125 |
|
125 |
|
|
|
126 |
# tar has exit status 1 if any file has changed while being read, |
127 |
# which is likely to happen as the logfiles are included. |
128 |
set +e |
129 |
|
126 |
tar -czf "$metadump" -C / $excludes \ |
130 |
tar -czf "$metadump" -C / $excludes \ |
127 |
"etc/koha/sites/$name" \ |
131 |
"etc/koha/sites/$name" \ |
128 |
"etc/apache2/sites-available/$instancefile" \ |
132 |
"etc/apache2/sites-available/$instancefile" \ |
Lines 132-137
dump_instance()
Link Here
|
132 |
$uploaded_files_dir \ |
136 |
$uploaded_files_dir \ |
133 |
$uploaded_temp_files_dir |
137 |
$uploaded_temp_files_dir |
134 |
|
138 |
|
|
|
139 |
if [ "$?" != "1" -a "$?" != "0" ]; then |
140 |
exit $? |
141 |
fi |
142 |
|
143 |
set -e |
144 |
|
135 |
chown "root:$name-koha" "$metadump" |
145 |
chown "root:$name-koha" "$metadump" |
136 |
chmod g+r "$metadump" |
146 |
chmod g+r "$metadump" |
137 |
|
147 |
|
138 |
- |
|
|