gcc484ntopperl-5.22
Last change
on this file since 0105685 was
c5c522c,
checked in by Edwin Eefting <edwin@datux.nl>, 8 years ago
|
initial commit, transferred from cleaned syn3 svn tree
|
-
Property mode set to
100644
|
File size:
711 bytes
|
Line | |
---|
1 | #!/bin/bash |
---|
2 | CYRUS=/home/system/cyrus-imap |
---|
3 | |
---|
4 | #fix permission problem with older installations |
---|
5 | chown -R cyrus /home/system/cyrus-imap/ |
---|
6 | |
---|
7 | #run database recovery |
---|
8 | echo "INFO:cyrus database word gerepareerd" |
---|
9 | rm $CYRUS/db/* $CYRUS/deliver.db $CYRUS/tls_sessions.db $CYRUS/db.backup?/* &>/dev/null |
---|
10 | if ! su cyrus -c "/usr/cyrus/bin/ctl_cyrusdb -r" ; then |
---|
11 | exit 1 |
---|
12 | fi |
---|
13 | |
---|
14 | #do we have a mailboxes list? |
---|
15 | if [ -f $1/mailboxes.list ]; then |
---|
16 | #recover mailboxes list from backup |
---|
17 | echo "INFO:cyrus userlist terugzetten" |
---|
18 | rm $CYRUS/mailboxes.db &>/dev/null |
---|
19 | su cyrus -c "/usr/cyrus/bin/ctl_mboxlist -u" < $1/mailboxes.list || exit 1 |
---|
20 | fi |
---|
21 | |
---|
22 | echo "INFO:cyrus mailboxen repareren" |
---|
23 | su cyrus -c "/usr/cyrus/bin/reconstruct -x -f" >/dev/null |
---|
24 | |
---|
Note: See
TracBrowser
for help on using the repository browser.