Create /var/log/simplerisk/simplerisk.log with correct apache ownership#37
Open
DASimp wants to merge 1 commit into
Open
Create /var/log/simplerisk/simplerisk.log with correct apache ownership#37DASimp wants to merge 1 commit into
DASimp wants to merge 1 commit into
Conversation
…ip per OS Adds set_up_simplerisk_log helper that creates /var/log/simplerisk/ and simplerisk.log, then chowns them to the OS-appropriate apache user (www-data on Debian/Ubuntu, apache on RHEL/CentOS, wwwrun on SUSE). RHEL installs also apply the httpd_log_t SELinux context to the directory. All three uninstall functions remove /var/log/simplerisk on cleanup. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
set_up_simplerisk_loghelper that creates/var/log/simplerisk/andsimplerisk.log, then sets ownership and permissions using the OS-appropriate apache userwww-data(Debian/Ubuntu),apache(RHEL/CentOS),wwwrun(SUSE)httpd_log_tSELinux context to/var/log/simpleriskon RHEL/CentOS installs/var/log/simpleriskduring cleanupPermissions set
/var/log/simplerisk/750(apache user owns, root group)/var/log/simplerisk/simplerisk.log640Test plan
/var/log/simplerisk/simplerisk.logexists, owned bywww-dataapache, SELinux context ishttpd_log_twwwrun--uninstallon each OS — verify/var/log/simpleriskis removed🤖 Generated with Claude Code