mirror of
https://git.cloudron.io/cloudron/gitea-app.git
synced 2024-11-21 23:50:59 +00:00
place log files in /run since /var/log is readonly
This commit is contained in:
parent
0388e45af4
commit
1d23dbcf04
2 changed files with 4 additions and 4 deletions
|
@ -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" ]
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue