File tree Expand file tree Collapse file tree 1 file changed +14
-13
lines changed
root/etc/s6-overlay/s6-rc.d/init-speedtest-tracker-config Expand file tree Collapse file tree 1 file changed +14
-13
lines changed Original file line number Diff line number Diff line change @@ -64,20 +64,21 @@ lsiown -R abc:abc \
6464
6565# Check for env file
6666if [[ -f /config/.env ]]; then
67- # create symlinks
68- symlinks=( \
69- /app/www/.env \
70- )
67+ if [[ -e "/app/www/.env" && ! -L "/app/www/.env" ]]; then
68+ rm -rf "/app/www/.env"
69+ fi
70+ if [[ ! -L "/app/www/.env" ]]; then
71+ ln -s "/config/.env" "/app/www/.env"
72+ fi
73+ fi
7174
72- for i in "${symlinks[@]}"
73- do
74- if [[ -e "$i" && ! -L "$i" ]]; then
75- rm -rf "$i"
76- fi
77- if [[ ! -L "$i" ]]; then
78- ln -s /config/"$(basename "$i")" "$i"
79- fi
80- done
75+ touch /config/log/laravel.log
76+
77+ if [[ -e "/app/www/storage/logs/laravel.log" && ! -L "/app/www/storage/logs/laravel.log" ]]; then
78+ rm -rf "/app/www/storage/logs/laravel.log"
79+ fi
80+ if [[ ! -L "/app/www/storage/logs/laravel.log" ]]; then
81+ ln -s "/config/log/laravel.log" "/app/www/storage/logs/laravel.log"
8182fi
8283
8384# Check for app key
You can’t perform that action at this time.
0 commit comments