mirror of
https://github.com/linuxserver/docker-heimdall.git
synced 2025-10-27 03:03:38 +09:00
save laravel.log to /config
This commit is contained in:
@@ -197,6 +197,7 @@ Once registered you can define the dockerfile to use with `-f Dockerfile.aarch64
|
|||||||
|
|
||||||
## Versions
|
## Versions
|
||||||
|
|
||||||
|
* **16.07.19:** - Save laravel.log to /config/log/heimdall.
|
||||||
* **28.06.19:** - Rebasing to alpine 3.10.
|
* **28.06.19:** - Rebasing to alpine 3.10.
|
||||||
* **01.04.19:** - Fix permission detect logic.
|
* **01.04.19:** - Fix permission detect logic.
|
||||||
* **26.03.19:** - Install Heimdall during container start to prevent delayed start due to overlayfs bug with recursive chown.
|
* **26.03.19:** - Install Heimdall during container start to prevent delayed start due to overlayfs bug with recursive chown.
|
||||||
|
|||||||
@@ -49,6 +49,7 @@ app_setup_block: |
|
|||||||
|
|
||||||
# changelog
|
# changelog
|
||||||
changelogs:
|
changelogs:
|
||||||
|
- { date: "16.07.19:", desc: "Save laravel.log to /config/log/heimdall." }
|
||||||
- { date: "28.06.19:", desc: "Rebasing to alpine 3.10." }
|
- { date: "28.06.19:", desc: "Rebasing to alpine 3.10." }
|
||||||
- { date: "01.04.19:", desc: "Fix permission detect logic." }
|
- { date: "01.04.19:", desc: "Fix permission detect logic." }
|
||||||
- { date: "26.03.19:", desc: "Install Heimdall during container start to prevent delayed start due to overlayfs bug with recursive chown." }
|
- { date: "26.03.19:", desc: "Install Heimdall during container start to prevent delayed start due to overlayfs bug with recursive chown." }
|
||||||
|
|||||||
@@ -3,7 +3,8 @@
|
|||||||
# make our folders
|
# make our folders
|
||||||
mkdir -p \
|
mkdir -p \
|
||||||
/config/www/{backgrounds,icons,avatars,SupportedApps} \
|
/config/www/{backgrounds,icons,avatars,SupportedApps} \
|
||||||
/var/www/localhost/heimdall
|
/var/www/localhost/heimdall \
|
||||||
|
/config/log/heimdall
|
||||||
|
|
||||||
# install heimdall if necessary
|
# install heimdall if necessary
|
||||||
[[ -f /heimdall/heimdall.tar.gz ]] && \
|
[[ -f /heimdall/heimdall.tar.gz ]] && \
|
||||||
@@ -32,6 +33,11 @@ do
|
|||||||
[[ ! -L "$i" ]] && ln -s /config/www/"$(basename "$i")" "$i"
|
[[ ! -L "$i" ]] && ln -s /config/www/"$(basename "$i")" "$i"
|
||||||
done
|
done
|
||||||
|
|
||||||
|
[[ -e "/var/www/localhost/heimdall/storage/logs/laravel.log" && ! -L "/var/www/localhost/heimdall/storage/logs/laravel.log" ]] \
|
||||||
|
&& rm -rf "/var/www/localhost/heimdall/storage/logs/laravel.log"
|
||||||
|
[[ ! -L "/var/www/localhost/heimdall/storage/logs/laravel.log" ]] && \
|
||||||
|
ln -s "/config/log/heimdall/laravel.log" "/var/www/localhost/heimdall/storage/logs/laravel.log"
|
||||||
|
|
||||||
# copy .env if not exists
|
# copy .env if not exists
|
||||||
[[ ! -f /config/www/.env ]] && \
|
[[ ! -f /config/www/.env ]] && \
|
||||||
cp /var/www/localhost/heimdall/.env.example /config/www/.env && \
|
cp /var/www/localhost/heimdall/.env.example /config/www/.env && \
|
||||||
|
|||||||
9
root/etc/logrotate.d/heimdall
Normal file
9
root/etc/logrotate.d/heimdall
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
/config/log/heimdall/laravel.log {
|
||||||
|
size 5M
|
||||||
|
rotate 5
|
||||||
|
compress
|
||||||
|
nodateext
|
||||||
|
notifempty
|
||||||
|
missingok
|
||||||
|
su abc abc
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user