LaravelPublisher v.0.0.2 檔案權限問題 20250610

This commit is contained in:
allen.yan 2025-06-10 15:17:08 +08:00
parent 296f3a731e
commit 8a52873788
2 changed files with 1 additions and 1 deletions

View File

@ -26,6 +26,7 @@ COPY docker/entrypoint.sh /entrypoint.sh
COPY docker/entrypoint.git.sh /entrypoint.git.sh
COPY docker/nginx/default.conf.template /etc/nginx/templates/default.conf.template
COPY docker/logrotate/laravel /etc/logrotate.d/app/laravel.conf
RUN chmod 644 /etc/logrotate.d/app/laravel.conf
WORKDIR /var/www

View File

@ -43,7 +43,6 @@ php-fpm -D
envsubst '${NGINX_HOST} ${NGINX_PORT}' < /etc/nginx/templates/default.conf.template > /etc/nginx/conf.d/default.conf
exec nginx -g "daemon off;"
chmod -R go-w /etc/logrotate.d/app
echo "0 0 * * * root /usr/sbin/logrotate /etc/logrotate.d/app" > /etc/cron.d/logrotate-Laravel
chmod 0644 /etc/cron.d/logrotate-Laravel