From 7f64713024f0b9ebbbeb4cc7c486730cbc8c35e4 Mon Sep 17 00:00:00 2001 From: Eric Dobbs Date: Sat, 22 Jul 2017 21:55:38 -0600 Subject: [PATCH] include script to set-owner-name --- Dockerfile | 4 ++-- set-owner-name | 39 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 41 insertions(+), 2 deletions(-) create mode 100755 set-owner-name diff --git a/Dockerfile b/Dockerfile index 5e41606..ec2225f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,8 +7,8 @@ RUN useradd --create-home app \ WORKDIR /home/app RUN su app -c "npm install -g --prefix . wiki@0.11.4" RUN su app -c "mkdir .wiki" -COPY configure-and-launch-wiki configure-and-launch-wiki -RUN chown app configure-and-launch-wiki +COPY configure-and-launch-wiki set-owner-name ./ +RUN chown app configure-and-launch-wiki set-owner-name VOLUME "/home/app/.wiki" ENV DOMAIN=localhost ENV OWNER_NAME="The Owner" diff --git a/set-owner-name b/set-owner-name new file mode 100755 index 0000000..b912396 --- /dev/null +++ b/set-owner-name @@ -0,0 +1,39 @@ +#!/bin/bash -eu +set -o pipefail + +usage() { + cat < $OWNER_FILE +} + +report-success() { + cat <