Commit 8789315b authored by jan.koester's avatar jan.koester
Browse files

fixes

parent 55480b5b
Loading
Loading
Loading
Loading
+2 −2
Changes for Dockerfile: 2 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -60,9 +60,9 @@ RUN apk add --no-cache yaml brotli openssl json-c libuuid hiredis libpq sqlite-l
RUN mkdir /etc/blogi
RUN mkdir /usr/local/share/blogi

COPY docker-config.yaml /usr/share/local/blogi
COPY docker-config.yaml /usr/local/share/blogi

RUN mkdir -p /usr/local/sbin
RUN mkdir -p /usr/local/sbin /usr/local/bin
COPY run.sh /usr/local/sbin
RUN chmod +x /usr/local/sbin/run.sh

+2 −2
Changes for run.sh: 2 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -8,7 +8,7 @@ if [ ! -f /etc/blogi/config.yaml ]; then

    CLIENTSECRET=$(pwgen -1)

    authcli addclient -h $CLIENTURL -n $(hostname) -u $USERNAME -p $PASSWORD -s $CLIENTSECRET
    /usr/local/bin/authcli addclient -h $CLIENTURL -n $(hostname) -u $USERNAME -p $PASSWORD -s $CLIENTSECRET

    sed  -e "s|%CLIENTURL%|$CLIENTURL|g" \
    -e "s|%CLIENTNAME%|$(hostname)|g" \
@@ -21,7 +21,7 @@ if [ ! -f /etc/blogi/config.yaml ]; then
    -e "s|%MAXCON%|$MAXCON|g" \
    -e "s|%PREFIX%|$PREFIX|g" \
    -e "s|%REMOTEURL%|$REMOTEURL|g" \
    /usr/share/local/blogi/docker-config.yaml > /etc/blogi/config.yaml
    /usr/local/share/blogi/docker-config.yaml > /etc/blogi/config.yaml
fi

/usr/local/bin/blogi -F true -c "yaml://etc/blogi/config.yaml"