Skip to content

Commit

Permalink
chore: fix composer path for php-fpm images
Browse files Browse the repository at this point in the history
  • Loading branch information
janosmiko committed Dec 3, 2024
1 parent 299e15a commit 881d086
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 20 deletions.
10 changes: 5 additions & 5 deletions images/php-fpm/base/context/rootfs/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -123,23 +123,23 @@ configure_composer_version() {

case "${COMPOSER_VERSION:-}" in
"1")
sudo alternatives --set composer "${HOME}/.local/bin/composer1"
sudo alternatives --set composer "/usr/local/bin/composer1"
sudo composer self-update --1
;;
"2")
sudo alternatives --set composer "${HOME}/.local/bin/composer2"
sudo alternatives --set composer "/usr/local/bin/composer2"
sudo composer self-update --2
;;
"2.2")
sudo alternatives --set composer "${HOME}/.local/bin/composer2"
sudo alternatives --set composer "/usr/local/bin/composer2"
sudo composer self-update --2.2
;;
"stable")
sudo alternatives --set composer "${HOME}/.local/bin/composer2"
sudo alternatives --set composer "/usr/local/bin/composer2"
sudo composer self-update --stable
;;
*)
sudo alternatives --set composer "${HOME}/.local/bin/composer2"
sudo alternatives --set composer "/usr/local/bin/composer2"
sudo composer self-update "${COMPOSER_VERSION:-}"
;;
esac
Expand Down
10 changes: 5 additions & 5 deletions images/php-fpm/magento2-web/context/rootfs/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -163,23 +163,23 @@ configure_composer_version() {

case "${COMPOSER_VERSION:-}" in
"1")
sudo alternatives --set composer "${HOME}/.local/bin/composer1"
sudo alternatives --set composer "/usr/local/bin/composer1"
sudo composer self-update --1
;;
"2")
sudo alternatives --set composer "${HOME}/.local/bin/composer2"
sudo alternatives --set composer "/usr/local/bin/composer2"
sudo composer self-update --2
;;
"2.2")
sudo alternatives --set composer "${HOME}/.local/bin/composer2"
sudo alternatives --set composer "/usr/local/bin/composer2"
sudo composer self-update --2.2
;;
"stable")
sudo alternatives --set composer "${HOME}/.local/bin/composer2"
sudo alternatives --set composer "/usr/local/bin/composer2"
sudo composer self-update --stable
;;
*)
sudo alternatives --set composer "${HOME}/.local/bin/composer2"
sudo alternatives --set composer "/usr/local/bin/composer2"
sudo composer self-update "${COMPOSER_VERSION:-}"
;;
esac
Expand Down
10 changes: 5 additions & 5 deletions images/php-fpm/shopware-web/context/rootfs/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -163,23 +163,23 @@ configure_composer_version() {

case "${COMPOSER_VERSION:-}" in
"1")
sudo alternatives --set composer "${HOME}/.local/bin/composer1"
sudo alternatives --set composer "/usr/local/bin/composer1"
sudo composer self-update --1
;;
"2")
sudo alternatives --set composer "${HOME}/.local/bin/composer2"
sudo alternatives --set composer "/usr/local/bin/composer2"
sudo composer self-update --2
;;
"2.2")
sudo alternatives --set composer "${HOME}/.local/bin/composer2"
sudo alternatives --set composer "/usr/local/bin/composer2"
sudo composer self-update --2.2
;;
"stable")
sudo alternatives --set composer "${HOME}/.local/bin/composer2"
sudo alternatives --set composer "/usr/local/bin/composer2"
sudo composer self-update --stable
;;
*)
sudo alternatives --set composer "${HOME}/.local/bin/composer2"
sudo alternatives --set composer "/usr/local/bin/composer2"
sudo composer self-update "${COMPOSER_VERSION:-}"
;;
esac
Expand Down
10 changes: 5 additions & 5 deletions images/php-fpm/wordpress-web/context/rootfs/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -163,23 +163,23 @@ configure_composer_version() {

case "${COMPOSER_VERSION:-}" in
"1")
sudo alternatives --set composer "${HOME}/.local/bin/composer1"
sudo alternatives --set composer "/usr/local/bin/composer1"
sudo composer self-update --1
;;
"2")
sudo alternatives --set composer "${HOME}/.local/bin/composer2"
sudo alternatives --set composer "/usr/local/bin/composer2"
sudo composer self-update --2
;;
"2.2")
sudo alternatives --set composer "${HOME}/.local/bin/composer2"
sudo alternatives --set composer "/usr/local/bin/composer2"
sudo composer self-update --2.2
;;
"stable")
sudo alternatives --set composer "${HOME}/.local/bin/composer2"
sudo alternatives --set composer "/usr/local/bin/composer2"
sudo composer self-update --stable
;;
*)
sudo alternatives --set composer "${HOME}/.local/bin/composer2"
sudo alternatives --set composer "/usr/local/bin/composer2"
sudo composer self-update "${COMPOSER_VERSION:-}"
;;
esac
Expand Down

0 comments on commit 881d086

Please sign in to comment.