Skip to content

Update docker-entrypoint.sh #324

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

Merged
merged 2 commits into from
Aug 10, 2018
Merged

Update docker-entrypoint.sh #324

merged 2 commits into from
Aug 10, 2018

Conversation

tarrenj
Copy link
Contributor

@tarrenj tarrenj commented Aug 9, 2018

Remove depreciated -a file operator in favor of -e.

@@ -40,7 +40,7 @@ if [[ "$1" == apache2* ]] || [ "$1" == php-fpm ]; then
group="$(id -g)"
fi

if ! [ -e index.php -a -e wp-includes/version.php ]; then
if ! [ -e index.php -e wp-includes/version.php ]; then
Copy link
Member

Choose a reason for hiding this comment

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

This isn't quite right:

$ [ -e xyz -e abc ]
-bash: [: too many arguments

What this needs to be updated to instead is something like:

	if [ ! -e index.php ] && [ ! -e wp-includes/version.php ]; then

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ACK

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Resolved. Thanks for the review.

Signed-off-by: Jake Tarren <jake@zensystem.io>
@tianon tianon merged commit ba478b0 into docker-library:master Aug 10, 2018
@tianon
Copy link
Member

tianon commented Aug 10, 2018

Thanks!

tianon added a commit to infosiftr/stackbrew that referenced this pull request Aug 14, 2018
- `docker`: 18.06.1-ce-rc1
- `ghost`: 1.25.5
- `golang`: 1.11rc1
- `memcached`: 1.5.10
- `mysql`: expose `mysqlx` port (docker-library/mysql#466)
- `openjdk`: 8u181 (Debian)
- `postgres`: `11~beta3-1.pgdg90+2`
- `rocket.chat`: 0.68.4
- `wordpress`: docker-library/wordpress#324
tianon added a commit to infosiftr/stackbrew that referenced this pull request Aug 14, 2018
- `docker`: 18.06.1-ce-rc1
- `ghost`: 1.25.5
- `memcached`: 1.5.10
- `mysql`: expose `mysqlx` port (docker-library/mysql#466)
- `openjdk`: 8u181 (Debian)
- `postgres`: `11~beta3-1.pgdg90+2`
- `rocket.chat`: 0.68.4
- `wordpress`: docker-library/wordpress#324
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