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

Make sure init.sh is executable #526

Merged
merged 1 commit into from
Jan 10, 2024
Merged

Conversation

0xCA
Copy link
Contributor

@0xCA 0xCA commented Jan 9, 2024

No description provided.

@@ -71,6 +71,7 @@ RUN mkdir -p db
COPY --from=builder --chown=wgui:wgui /build/wg-ui .
RUN chmod +x wg-ui
COPY init.sh .
RUN chmod +x init.sh
Copy link
Owner

Choose a reason for hiding this comment

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

Why do we need this? The init.sh file is configured to be executed by any user already.

Copy link
Contributor Author

@0xCA 0xCA Jan 9, 2024

Choose a reason for hiding this comment

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

If the repo is cloned or edited on windows, the flag is lost, and it's quite hard to get it back
Also prevents similar potential issues, like copy or archive without permissions

Copy link
Owner

Choose a reason for hiding this comment

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

ah ok, that makes sense. thank you for your explanation

@ngoduykhanh ngoduykhanh merged commit 84032d1 into ngoduykhanh:master Jan 10, 2024
1 check passed
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.

None yet

2 participants