From f0b0319f54384a176e89bbc4d93f85d635e8da40 Mon Sep 17 00:00:00 2001 From: konrad Date: Sat, 8 Sep 2018 15:51:49 +0200 Subject: [PATCH] [skip-ci] added s6config --- .gitignore | 1 - docker/etc/s6/vikunja/finish | 2 ++ docker/etc/s6/vikunja/run | 6 ++++++ 3 files changed, 8 insertions(+), 1 deletion(-) create mode 100755 docker/etc/s6/vikunja/finish create mode 100755 docker/etc/s6/vikunja/run diff --git a/.gitignore b/.gitignore index f2a7b12a..da631ff7 100644 --- a/.gitignore +++ b/.gitignore @@ -4,6 +4,5 @@ config.yml config.yaml *.db Run -vikunja dist/ cover.* \ No newline at end of file diff --git a/docker/etc/s6/vikunja/finish b/docker/etc/s6/vikunja/finish new file mode 100755 index 00000000..06bd9865 --- /dev/null +++ b/docker/etc/s6/vikunja/finish @@ -0,0 +1,2 @@ +#!/bin/bash +exit 0 diff --git a/docker/etc/s6/vikunja/run b/docker/etc/s6/vikunja/run new file mode 100755 index 00000000..6af15612 --- /dev/null +++ b/docker/etc/s6/vikunja/run @@ -0,0 +1,6 @@ +#!/bin/bash +[[ -f ./setup ]] && source ./setup + +pushd /app/vikunja > /dev/null + exec su-exec $USER /app/vikunja/vikunja +popd