1
0
mirror of https://git.cloudron.io/cloudron/gitea-app synced 2025-09-02 15:55:02 +00:00

Use latest base image

This commit is contained in:
Girish Ramakrishnan
2018-10-10 20:09:26 -07:00
parent 1b15db85e3
commit 8a942dc8f7
3 changed files with 84 additions and 12 deletions

View File

@@ -2,7 +2,7 @@
set -eu -o pipefail
mkdir -p /run/gitea/tmp/uploads
mkdir -p /run/gitea/tmp/uploads /run/sshd
setup_ldap_source() {
set -eu
@@ -50,10 +50,7 @@ fi
chmod 0600 /app/data/sshd/*_key
chmod 0644 /app/data/sshd/*.pub
sed -e "s/^Port .*/Port ${SSH_PORT}/" \
-e "s/^#ListenAddress .*/ListenAddress 0.0.0.0/" \
-e "s,^HostKey /etc/ssh/,HostKey /app/data/sshd/," \
/etc/ssh/sshd_config > /run/gitea/sshd_config
sed -e "s/^Port .*/Port ${SSH_PORT}/" /etc/ssh/sshd_config > /run/gitea/sshd_config
cp /home/git/app.ini.template "/run/gitea/app.ini"