[entrypoint.sh]: change environment for alpine
This commit is contained in:
parent
37dbc490bb
commit
7b8280c1d5
@ -1,4 +1,4 @@
|
|||||||
#!/bin/bash
|
#!/usr/bin/env sh
|
||||||
|
|
||||||
# Validate environment variables
|
# Validate environment variables
|
||||||
|
|
||||||
@ -112,22 +112,22 @@ scan-path=/var/lib/git/repositories
|
|||||||
EOF
|
EOF
|
||||||
|
|
||||||
# Append clone-prefix
|
# Append clone-prefix
|
||||||
if [[ ! -z "$CGIT_CLONE_PREFIX" ]]; then
|
if [ ! -z "$CGIT_CLONE_PREFIX" ]; then
|
||||||
echo "# Specify some default clone prefixes" >> /etc/cgitrc
|
echo "# Specify some default clone prefixes" >> /etc/cgitrc
|
||||||
echo "clone-prefix=$CGIT_CLONE_PREFIX" >> /etc/cgitrc
|
echo "clone-prefix=$CGIT_CLONE_PREFIX" >> /etc/cgitrc
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ ! -z "$CGIT_ROOT_TITLE" ]]; then
|
if [ ! -z "$CGIT_ROOT_TITLE" ]; then
|
||||||
echo "# Set the title and heading of the repository index page" >> /etc/cgitrc
|
echo "# Set the title and heading of the repository index page" >> /etc/cgitrc
|
||||||
echo "root-title=$CGIT_ROOT_TITLE" >> /etc/cgitrc
|
echo "root-title=$CGIT_ROOT_TITLE" >> /etc/cgitrc
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ ! -z "$CGIT_DESC" ]]; then
|
if [ ! -z "$CGIT_DESC" ]; then
|
||||||
echo "# Set description repository" >> /etc/cgitrc
|
echo "# Set description repository" >> /etc/cgitrc
|
||||||
echo "root-desc=$CGIT_DESC" >> /etc/cgitrc
|
echo "root-desc=$CGIT_DESC" >> /etc/cgitrc
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ ! -z "$CGIT_SNAPSHOT" ]]; then
|
if [ ! -z "$CGIT_SNAPSHOT" ]; then
|
||||||
echo "# Allow download of tar.gz, tar.bz2, and tar.xz formats" >> /etc/cgitrc
|
echo "# Allow download of tar.gz, tar.bz2, and tar.xz formats" >> /etc/cgitrc
|
||||||
echo "snapshots=$CGIT_SNAPSHOT" >> /etc/cgitrc
|
echo "snapshots=$CGIT_SNAPSHOT" >> /etc/cgitrc
|
||||||
fi
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user