Skip to content

Commit 341fa0a

Browse files
authored
docker: fix log directory (pterodactyl#4839)
2 parents 04d83ed + aa2f797 commit 341fa0a

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

.github/docker/entrypoint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ cd /app
33

44
mkdir -p /var/log/panel/logs/ /var/log/supervisord/ /var/log/nginx/ /var/log/php7/ \
55
&& chmod 777 /var/log/panel/logs/ \
6-
&& ln -s /var/log/panel/logs/ /app/storage/logs/
6+
&& ln -s /app/storage/logs/ /var/log/panel/
77

88
## check for .env file and generate app keys if missing
99
if [ -f /app/var/.env ]; then

Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ RUN apk add --no-cache --update ca-certificates dcron curl git supervisor tar un
2323
&& chmod 777 -R bootstrap storage \
2424
&& composer install --no-dev --optimize-autoloader \
2525
&& rm -rf .env bootstrap/cache/*.php \
26+
&& mkdir -p /app/storage/logs/ \
2627
&& chown -R nginx:nginx .
2728

2829
RUN rm /usr/local/etc/php-fpm.conf \

0 commit comments

Comments
 (0)