Open
Description
When run curl -fsS https://platform.sh/cli/installer | php
in containers like the official docker images Drupal or PHP, below error is shown:
curl -fsS https://platform.sh/cli/installer | php
Platform.sh CLI installer
Environment check
[*] The "json" PHP extension is installed.
[*] The "phar" PHP extension is installed.
[*] Git is installed.
[*] The "openssl" PHP extension is installed.
[*] The "pcre" PHP extension is installed.
[*] One or both of the "mbstring" or "iconv" PHP extensions is installed.
[*] The "curl" PHP extension is installed.
[!] The "pcntl" and "posix" extensions are needed for some commands.
[*] The "allow_url_fopen" setting is on.
[*] The "apc.enable_cli" setting is off.
Download
Finding the latest version... done
Downloading version 3.72.1... done
Checking file integrity... done
Checking that the file is a valid Phar... done
Install
Making the Phar executable... done
Moving the Phar to your home directory... done
Executable location: /var/www/.platformsh/bin/platform
Running self:install command...
Copying resource files... done
Setting up autocompletion... failed
Cannot generate hook for unknown shell type 'nologin'. Available hooks
are: bash, zsh
To set up the CLI, add the following lines to your shell configuration file:
# BEGIN SNIPPET: Platform.sh CLI configuration
HOME=${HOME:-'/var/www'}
export PATH="$HOME/"'.platformsh/bin':"$PATH"
if [ -f "$HOME/"'.platformsh/shell-config.rc' ]; then . "$HOME/"'.platformsh/shell-config.rc'; fi # END SNIPPET
Metadata
Metadata
Assignees
Labels
No labels