Skip to content

Fix log cleanup function to create directory and restore logs#581

Merged
Martinski4GitHub merged 3 commits into
devfrom
ExtremeFiretop-patch-1
Jun 23, 2026
Merged

Fix log cleanup function to create directory and restore logs#581
Martinski4GitHub merged 3 commits into
devfrom
ExtremeFiretop-patch-1

Conversation

@ExtremeFiretop

Copy link
Copy Markdown
Owner

Ensure log directory exists before cleanup and enhance log deletion with restoration attempt.

Ensure log directory exists before cleanup and enhance log deletion with restoration attempt.
@ExtremeFiretop

Copy link
Copy Markdown
Owner Author

@Martinski4GitHub

New installs now seem to create this warning message:
image

The cause seems to be that the log directory is not yet recreated on first install yet.
Simple solution is to create the directory if missing.

@Martinski4GitHub

Copy link
Copy Markdown
Collaborator

@Martinski4GitHub

New installs now seem to create this warning message: image

Nice catch!!!

The cause seems to be that the log directory is not yet recreated on first install yet. Simple solution is to create the directory if missing.

See my review comments.

Comment thread MerlinAU.sh
Comment thread MerlinAU.sh

@Martinski4GitHub Martinski4GitHub left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll merge this PR, but I'll submit another one to clean things up and improve the code.

@Martinski4GitHub Martinski4GitHub merged commit 18b2f39 into dev Jun 23, 2026
1 check passed
@ExtremeFiretop ExtremeFiretop deleted the ExtremeFiretop-patch-1 branch June 24, 2026 02:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants