aboutsummaryrefslogtreecommitdiffstats
path: root/gitolite-cgit/entrypoint.sh
diff options
context:
space:
mode:
authorJesús <heckyel@hyperbola.info>2021-04-08 11:25:57 -0500
committerJesús <heckyel@hyperbola.info>2021-04-08 11:25:57 -0500
commit7b8280c1d5ea02328a074cbfaf7780b3d7453bee (patch)
tree1b2ed8389b9e0a1b90c58c208e8153b0f7fc3130 /gitolite-cgit/entrypoint.sh
parent37dbc490bbaf6fd5d55ad5bb36847215106a84fb (diff)
downloadgitolite-cgit-docker-7b8280c1d5ea02328a074cbfaf7780b3d7453bee.tar.lz
gitolite-cgit-docker-7b8280c1d5ea02328a074cbfaf7780b3d7453bee.tar.xz
gitolite-cgit-docker-7b8280c1d5ea02328a074cbfaf7780b3d7453bee.zip
[entrypoint.sh]: change environment for alpine
Diffstat (limited to 'gitolite-cgit/entrypoint.sh')
-rwxr-xr-xgitolite-cgit/entrypoint.sh10
1 files changed, 5 insertions, 5 deletions
diff --git a/gitolite-cgit/entrypoint.sh b/gitolite-cgit/entrypoint.sh
index 0656fa3..729de08 100755
--- a/gitolite-cgit/entrypoint.sh
+++ b/gitolite-cgit/entrypoint.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env sh
# Validate environment variables
@@ -112,22 +112,22 @@ scan-path=/var/lib/git/repositories
EOF
# Append clone-prefix
- if [[ ! -z "$CGIT_CLONE_PREFIX" ]]; then
+ if [ ! -z "$CGIT_CLONE_PREFIX" ]; then
echo "# Specify some default clone prefixes" >> /etc/cgitrc
echo "clone-prefix=$CGIT_CLONE_PREFIX" >> /etc/cgitrc
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 "root-title=$CGIT_ROOT_TITLE" >> /etc/cgitrc
fi
- if [[ ! -z "$CGIT_DESC" ]]; then
+ if [ ! -z "$CGIT_DESC" ]; then
echo "# Set description repository" >> /etc/cgitrc
echo "root-desc=$CGIT_DESC" >> /etc/cgitrc
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 "snapshots=$CGIT_SNAPSHOT" >> /etc/cgitrc
fi