Skip to content

Commit 9bbcd09

Browse files
authored
Merge pull request #263 from umd-lib/feature/LIBDEVOPS-83
LIBDEVOPS-83. Add script to prepare and run postfix. https://umd-dit.atlassian.net/browse/LIBDEVOPS-83
2 parents ef3334e + a33e7db commit 9bbcd09

2 files changed

Lines changed: 19 additions & 1 deletion

File tree

‎Dockerfile‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,9 @@ RUN apt-get update && \
9292
vim \
9393
python3-lxml \
9494
jq && \
95-
mkfifo /var/spool/postfix/public/pickup && \
9695
ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
96+
97+
COPY dspace/src/main/docker/cron/postfix.sh /usr/local/bin/postfix.sh
9798
# End UMD Customization
9899
# On startup, run DSpace Runnable JAR
99100
ENTRYPOINT ["java", "-jar", "webapps/server-boot.jar", "--dspace.dir=$DSPACE_INSTALL"]
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
#!/bin/bash
2+
#
3+
# The contents of this file are subject to the license and copyright
4+
# detailed in the LICENSE and NOTICE files at the root of the source
5+
# tree and available online at
6+
#
7+
# http://www.dspace.org/license/
8+
#
9+
10+
# Prepare Postfix directories and start Postfix
11+
mkdir -p /var/spool/postfix/etc
12+
cp /etc/resolv.conf /var/spool/postfix/etc/
13+
cp /etc/nsswitch.conf /var/spool/postfix/etc/
14+
cp /etc/hosts /var/spool/postfix/etc/
15+
chown -R postfix:postfix /var/lib/postfix/
16+
chmod 755 /var/spool/postfix/ /var/lib/postfix/
17+
postfix start

0 commit comments

Comments
 (0)