mirror of
https://github.com/maxkratz/docker_imapgrab.git
synced 2024-10-14 01:33:51 +00:00
Fixes broken access to imapgrab python script
This commit is contained in:
parent
ef4c5bc742
commit
d3189f8b05
1 changed files with 3 additions and 3 deletions
|
@ -25,13 +25,13 @@ RUN sudo git clone https://github.com/ralbear/IMAPbackup.git
|
|||
RUN sudo rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# Run list command
|
||||
# RUN cd IMAPbackup && sudo python3 imapgrab38.py -l -s $MAILHOST -u $MAILUSER -p $MAILPASSWORD
|
||||
# RUN cd IMAPbackup && sudo python3 imapgrab.py -l -s $MAILHOST -u $MAILUSER -p $MAILPASSWORD
|
||||
|
||||
# Assuming that folder is mount to /mnt, create mail-output folder
|
||||
RUN sudo mkdir -p /mnt/mail
|
||||
|
||||
# Check if logging is enabled
|
||||
CMD if [ "${MAILLOG}" = "TRUE" ]; \
|
||||
then sudo mkdir -p /mnt/log && cd IMAPbackup && sudo python3 imapgrab38.py -L imapgrab -d -v -M -f /mnt/mail/$MAILFOLDER -s $MAILHOST -u $MAILUSER -p $MAILPASSWORD -m "_ALL_" >> /mnt/log/$(date +'%Y-%m-%d_%H-%M-%S')_mail-backup.log; \
|
||||
else cd IMAPbackup && sudo python3 imapgrab38.py -L imapgrab -d -v -M -f /mnt/mail/$MAILFOLDER -s $MAILHOST -u $MAILUSER -p $MAILPASSWORD -m "_ALL_"; \
|
||||
then sudo mkdir -p /mnt/log && cd IMAPbackup && sudo python3 imapgrab.py -L imapgrab -d -v -M -f /mnt/mail/$MAILFOLDER -s $MAILHOST -u $MAILUSER -p $MAILPASSWORD -m "_ALL_" >> /mnt/log/$(date +'%Y-%m-%d_%H-%M-%S')_mail-backup.log; \
|
||||
else cd IMAPbackup && sudo python3 imapgrab.py -L imapgrab -d -v -M -f /mnt/mail/$MAILFOLDER -s $MAILHOST -u $MAILUSER -p $MAILPASSWORD -m "_ALL_"; \
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue