Compare commits

..

4 Commits
1.5.5 ... 1.5.6

Author SHA1 Message Date
Erik Huelsmann
728840ce4c * Update Dockerfile to 1.5.6 2017-04-09 14:44:12 +00:00
John Locke
5f45abdf2d Create /tmp/ledgersmb if not exists 2017-03-14 13:50:53 -07:00
John Locke
8afea54d65 Fix ssmtp update script 2017-03-14 13:41:59 -07:00
John Locke
326790de44 Update postgres client libs to 9.6, fixes ledgersmb/ledgersmb#2686 , older pg_dump aborts when connecting to newer postgres server. 2017-03-14 10:15:01 -07:00
3 changed files with 11 additions and 4 deletions

View File

@@ -1,9 +1,13 @@
FROM perl:5
MAINTAINER Freelock john@freelock.com
# Use postgres repository to get newer pg_dump and postgres client
RUN wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add - && \
echo "deb http://apt.postgresql.org/pub/repos/apt/ jessie-pgdg main 9.6" |tee /etc/apt/sources.list.d/postgres.list
# Install Perl, Tex, Starman, psql client, and all dependencies
RUN DEBIAN_FRONTENT=noninteractive && \
apt-get update && apt-get -y install \
apt-get update && apt-get dist-upgrade -y && apt-get -y install \
libcgi-emulate-psgi-perl libcgi-simple-perl libconfig-inifiles-perl \
libdbd-pg-perl libdbi-perl libdatetime-perl \
libdatetime-format-strptime-perl libdigest-md5-perl \
@@ -20,12 +24,12 @@ RUN DEBIAN_FRONTENT=noninteractive && \
texlive-xetex \
starman \
libopenoffice-oodoc-perl \
postgresql-client \
postgresql-client-9.6 \
lpr \
ssmtp
# Build time variables
ENV LSMB_VERSION 1.5.5
ENV LSMB_VERSION 1.5.6
# Install LedgerSMB
RUN cd /srv && \

View File

@@ -14,6 +14,9 @@ if [[ ! -f ledgersmb.conf ]]; then
/srv/ledgersmb/ledgersmb.conf
fi
if [ ! -f "/tmp/ledgersmb" ]; then
mkdir /tmp/ledgersmb
fi
# Currently unmaintained/untested
# if [ ! -z ${CREATE_DATABASE+x} ]; then
# perl tools/dbsetup.pl --company $CREATE_DATABASE \

View File

@@ -1,6 +1,6 @@
#!/bin/bash
ConfiguredComment='# install script update_ssmtp.sh has configured ssmtp'
grep -qc "$ConfiguredComment" /etc/ssmtp.conf && {
grep -qc "$ConfiguredComment" /etc/ssmtp/ssmtp.conf && {
echo "smtp configured."
exit
}