Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build(install): improve root detection and set ownership on files #186

Merged
merged 2 commits into from
Sep 2, 2024

Conversation

psyray
Copy link
Contributor

@psyray psyray commented Sep 2, 2024

Fixes #187

This PR improves installation and resolve problems when user install as root user or if the project folder has root rights

As we move to the rengine user inside docker, root install is not possible.
And files needs to be set to the sudo user installing reNgine-ng to prevent bad permissions inside the docker volumes
So I've added more check for root user and a chown with the current user on the project files
It appears like this if the install change the project folder permissions
image

Tested under root directly -> Install exit
Tested under sudo su -> Install exit
Tested under sudo -> Install continue and reset the project folder permission to the current user if it was not

I've also put some warning for the PG_USER part in the .env-dist file
And I've remove the useless make.bat

@psyray psyray added the bug Something isn't working label Sep 2, 2024
@psyray psyray requested a review from AnonymousWP September 2, 2024 17:10
@psyray psyray self-assigned this Sep 2, 2024
@AnonymousWP AnonymousWP changed the title fix(install): improve root detection and set ownership on files build(install): improve root detection and set ownership on files Sep 2, 2024
.env-dist Show resolved Hide resolved
install.sh Outdated Show resolved Hide resolved
install.sh Outdated Show resolved Hide resolved
@AnonymousWP AnonymousWP merged commit 8843dd4 into release/2.1.0 Sep 2, 2024
14 checks passed
@AnonymousWP AnonymousWP deleted the fix-install-bugs branch September 2, 2024 20:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

bug(install): if project installed by root or folder owned by root celery is not starting
2 participants