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

(-)a/debian/koha-common.cron.d (-1 / +1 lines)
Lines 6-10 Link Here
6
SHELL=/bin/sh
6
SHELL=/bin/sh
7
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
7
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
8
8
9
*/5 * * * * root test -x /usr/sbin/koha-rebuild-zebra && koha-rebuild-zebra $(koha-list --enabled)
9
*/5 * * * * root test -x /usr/sbin/koha-rebuild-zebra && koha-rebuild-zebra -q $(koha-list --enabled)
10
*/15 * * * * root koha-foreach --enabled --email /usr/share/koha/bin/cronjobs/process_message_queue.pl
10
*/15 * * * * root koha-foreach --enabled --email /usr/share/koha/bin/cronjobs/process_message_queue.pl
(-)a/debian/scripts/koha-rebuild-zebra (-2 / +15 lines)
Lines 91-96 Options: Link Here
91
    --authorities|-a  Only run process for authorities.
91
    --authorities|-a  Only run process for authorities.
92
    --biblios|-b      Only run process for biblios.
92
    --biblios|-b      Only run process for biblios.
93
    --full|-f         Does a reindex of the whole collection.
93
    --full|-f         Does a reindex of the whole collection.
94
    --quiet|-q        Sometimes be a bit quieter for scripts/cronjobs.
94
    --verbose|-v      Be verbose.
95
    --verbose|-v      Be verbose.
95
    --help|-h         Print this help.
96
    --help|-h         Print this help.
96
97
Lines 108-113 biblios_only="no" Link Here
108
authorities_only="no"
109
authorities_only="no"
109
biblios="yes"
110
biblios="yes"
110
authorities="yes"
111
authorities="yes"
112
# The '-q' option is intended to prevent the cronjob causing this to output
113
# help information if there are no instances defined.
114
quiet="no"
111
115
112
# Read parameters
116
# Read parameters
113
while [ -n "$*" ]; do
117
while [ -n "$*" ]; do
Lines 130-135 while [ -n "$*" ]; do Link Here
130
        -v|--verbose)
134
        -v|--verbose)
131
            opt_verbose="-v"
135
            opt_verbose="-v"
132
            ;;
136
            ;;
137
        -q|--quiet)
138
            quiet="yes"
139
            ;;
133
        -*)
140
        -*)
134
            opts_other="$opts_other $1";
141
            opts_other="$opts_other $1";
135
            ;;
142
            ;;
Lines 142-148 while [ -n "$*" ]; do Link Here
142
done
149
done
143
150
144
# Parse command line.
151
# Parse command line.
145
[ $# -ge 1 ] || ( usage ; die "Missing instance name..." )
152
if [ $# -lt 1 ]; then
153
    if [ "$quiet" = "no" ]; then
154
        usage
155
        die "Missing instance name."
156
    else
157
        exit
158
    fi
159
fi
146
160
147
# Loop over instance names
161
# Loop over instance names
148
for name in "$@"
162
for name in "$@"
149
- 

Return to bug 10379