mirror of
https://github.com/RetroDECK/RetroDECK.git
synced 2025-04-10 19:15:12 +00:00
Handle a broken symlink for internal logging folder
This commit is contained in:
parent
2792451151
commit
e7f4416f36
|
@ -8,6 +8,11 @@
|
|||
|
||||
: "${logging_level:=info}" # Initializing the log level variable if not already valued, this will be actually red later from the config file
|
||||
rd_logs_folder="/var/config/retrodeck/logs" # Static location to write all RetroDECK-related logs
|
||||
if [ -h "$rd_logs_folder" ]; then # Check if internal logging folder is already a symlink
|
||||
if [ ! -e "$rd_logs_folder" ]; then # Check if internal logging folder symlink is broken
|
||||
unlink "$rd_logs_folder" # Remove broken symlink so the folder is recreated when sourcing logger.sh
|
||||
fi
|
||||
fi
|
||||
source /app/libexec/logger.sh
|
||||
rotate_logs
|
||||
|
||||
|
|
Loading…
Reference in a new issue