place log files in /run since /var/log is readonly

master
Girish Ramakrishnan 2015-11-24 10:52:20 -08:00
parent 0388e45af4
commit 1d23dbcf04
2 changed files with 4 additions and 4 deletions

View File

@ -29,7 +29,8 @@ ADD app.ini.template /home/cloudron/app.ini.template
RUN mkdir -p /run/gogs && chown -R cloudron:cloudron /run/gogs
# setup log paths
RUN mkdir -p /var/log/gogs && chown -R cloudron:cloudron /var/log/gogs
RUN mkdir -p /run/gogs && chown -R cloudron:cloudron /run/gogs
RUN sed -e 's,^logfile=.*$,logfile=/run/gogs/supervisord.log,' -i /etc/supervisor/supervisord.conf
RUN ln -s /app/data/ssh /home/cloudron/.ssh
RUN ln -s /app/data/gitconfig /home/cloudron/.gitconfig
@ -37,8 +38,7 @@ RUN ln -s /app/data/gitconfig /home/cloudron/.gitconfig
ADD start.sh /home/cloudron/start.sh
# disable pam authentication for sshd
RUN sed 's/UsePAM yes/UsePAM no/' -i /etc/ssh/sshd_config
RUN sed 's/UsePrivilegeSeparation yes/UsePrivilegeSeparation no/' -i /etc/ssh/sshd_config
RUN sed -e 's/UsePAM yes/UsePAM no/' -e 's/UsePrivilegeSeparation yes/UsePrivilegeSeparation no/' -i /etc/ssh/sshd_config
RUN echo "UseDNS no" >> /etc/ssh/sshd_config
CMD [ "/home/cloudron/start.sh" ]

View File

@ -48,4 +48,4 @@ ENABLE_NOTIFY_MAIL = true
; Either "console", "file", "conn", "smtp" or "database", default is "console"
MODE = console
; used for xorm.log
ROOT_PATH = /var/log/gogs
ROOT_PATH = /run/gogs