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

Improve bee site-install to avoid permission error on install.sh script, which often needs execute permissions adding #386

Closed
gwolf opened this issue Jun 20, 2024 · 1 comment · Fixed by #387

Comments

@gwolf
Copy link
Contributor

gwolf commented Jun 20, 2024

When attempting to do the site initialization with Bee, it assumes file permissions that don't match that of a just-downloaded Backdrop install:

/tmp $ mkdir bkdrp
/tmp $ cd bkdrp/
/tmp/bkdrp $ bee dl-core

 [✔] Backdrop was downloaded into '/tmp/bkdrp'.

/tmp/bkdrp $ bee site-install --auto --db-name foo --db-user foo --db-pass foo

Installing Backdrop. This may take a moment...

sh: 1: ./core/scripts/install.sh: Permission denied

This is easily fixed by issuing a chmod 0755 core/scripts/install.sh. I guess a cleaner way would be to modify install.bee.inc to explicitly call the PHP binary that's already being used instead of calling the PHP interpreter with the install.sh script as an argument.

@yorkshire-pudding yorkshire-pudding changed the title Running “bee site-install” fails with “permission denied” due to non-executable script Improve bee site-install to avoid the install.sh script, which often needs execute permissions adding Jun 20, 2024
@yorkshire-pudding
Copy link
Collaborator

Hi @gwolf - welcome to Backdrop and Bee.
I do the chmod nearly all the time for new sites. Yes, it could be re-written to avoid that script. I've marked it as an enhancement and re-titled it. I can't promise anything about when it might get done though, as I'm working on other bee priorities at the moment, when I can spare the time.

@yorkshire-pudding yorkshire-pudding changed the title Improve bee site-install to avoid the install.sh script, which often needs execute permissions adding Improve bee site-install to avoid permission error on install.sh script, which often needs execute permissions adding Jun 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants