From 534bbf660f48fc148c29fed6aa545df97424db0a Mon Sep 17 00:00:00 2001 From: Girish Ramakrishnan Date: Wed, 14 Oct 2015 00:19:55 -0700 Subject: [PATCH] .gitconfig needs to be backed up --- Dockerfile | 1 + start.sh | 5 ++--- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 278ed67..685312c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -32,6 +32,7 @@ RUN mkdir -p /run/gogs && chown -R cloudron:cloudron /run/gogs RUN mkdir -p /var/log/gogs && chown -R cloudron:cloudron /var/log/gogs RUN ln -s /app/data/ssh /home/cloudron/.ssh +RUN ln -s /app/data/gitconfig /home/cloudron/.gitconfig ADD start.sh /home/cloudron/start.sh diff --git a/start.sh b/start.sh index 4424922..e1c3f86 100755 --- a/start.sh +++ b/start.sh @@ -33,9 +33,8 @@ sed -e "s/##HOSTNAME/${fqdn}/g" \ -e "s/##SECRET_KEY/$(pwgen -1 -s)/g" \ /home/cloudron/app.ini.template > "/run/gogs/app.ini" -chown cloudron:cloudron /run/gogs - -chown -R cloudron.cloudron /app/data +mkdir -p /app/data/repository /app/data/ssh +chown -R cloudron.cloudron /app/data /run/gogs ( setup_ldap_source ) &