diff options
author | Jakob Ackermann <das7pad@outlook.com> | 2019-05-06 04:49:32 +0200 |
---|---|---|
committer | techknowlogick <hello@techknowlogick.com> | 2019-05-05 22:49:32 -0400 |
commit | dab38c375df5c4719d35f1be29278d254d68390f (patch) | |
tree | ccb2cd4e71f5e4b622c00be382153406b097893d /docker/etc/s6/gitea/setup | |
parent | 0081cd8dfe34bcd9182ccebb406000c17dcb8025 (diff) | |
download | gitea-dab38c375df5c4719d35f1be29278d254d68390f.tar.gz gitea-dab38c375df5c4719d35f1be29278d254d68390f.zip |
[docker] drop the docker Makefile from the image (#6507)
Diffstat (limited to 'docker/etc/s6/gitea/setup')
-rwxr-xr-x | docker/etc/s6/gitea/setup | 46 |
1 files changed, 0 insertions, 46 deletions
diff --git a/docker/etc/s6/gitea/setup b/docker/etc/s6/gitea/setup deleted file mode 100755 index 2b0fb6c37b..0000000000 --- a/docker/etc/s6/gitea/setup +++ /dev/null @@ -1,46 +0,0 @@ -#!/bin/bash - -if [ ! -d /data/git/.ssh ]; then - mkdir -p /data/git/.ssh - chmod 700 /data/git/.ssh -fi - -if [ ! -f /data/git/.ssh/environment ]; then - echo "GITEA_CUSTOM=/data/gitea" >| /data/git/.ssh/environment - chmod 600 /data/git/.ssh/environment -fi - -if [ ! -f /data/gitea/conf/app.ini ]; then - mkdir -p /data/gitea/conf - - # Set INSTALL_LOCK to true only if SECRET_KEY is not empty and - # INSTALL_LOCK is empty - if [ -n "$SECRET_KEY" ] && [ -z "$INSTALL_LOCK" ]; then - INSTALL_LOCK=true - fi - - # Substitude the environment variables in the template - APP_NAME=${APP_NAME:-"Gitea: Git with a cup of tea"} \ - RUN_MODE=${RUN_MODE:-"dev"} \ - SSH_DOMAIN=${SSH_DOMAIN:-"localhost"} \ - HTTP_PORT=${HTTP_PORT:-"3000"} \ - ROOT_URL=${ROOT_URL:-""} \ - DISABLE_SSH=${DISABLE_SSH:-"false"} \ - SSH_PORT=${SSH_PORT:-"22"} \ - DB_TYPE=${DB_TYPE:-"sqlite3"} \ - DB_HOST=${DB_HOST:-"localhost:3306"} \ - DB_NAME=${DB_NAME:-"gitea"} \ - DB_USER=${DB_USER:-"root"} \ - DB_PASSWD=${DB_PASSWD:-""} \ - INSTALL_LOCK=${INSTALL_LOCK:-"false"} \ - DISABLE_REGISTRATION=${DISABLE_REGISTRATION:-"false"} \ - REQUIRE_SIGNIN_VIEW=${REQUIRE_SIGNIN_VIEW:-"false"} \ - SECRET_KEY=${SECRET_KEY:-""} \ - envsubst < /etc/templates/app.ini > /data/gitea/conf/app.ini -fi - -# only chown if current owner is not already the gitea ${USER}. No recursive check to save time -if ! [[ $(ls -ld /data/gitea | awk '{print $3}') = ${USER} ]]; then chown -R ${USER}:git /data/gitea; fi -if ! [[ $(ls -ld /app/gitea | awk '{print $3}') = ${USER} ]]; then chown -R ${USER}:git /app/gitea; fi -if ! [[ $(ls -ld /data/git | awk '{print $3}') = ${USER} ]]; then chown -R ${USER}:git /data/git; fi -chmod 0755 /data/gitea /app/gitea /data/git |