6
0
Fork 0

Add minimal __wp_cli type

This commit is contained in:
Timothée Floure 2021-10-26 11:08:00 +02:00
parent b09138937f
commit 1afe5837de
Signed by: tfloure
GPG key ID: 4502C902C00A1E12
3 changed files with 18 additions and 0 deletions

View file

@ -0,0 +1,7 @@
#!/bin/sh
cat << EOF
curl https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar -o wp-cli.phar
chmod +x wp-cli.phar
mv wp-cli.phar /usr/local/bin/wp
EOF

11
type/__wp_cli/manifest Normal file
View file

@ -0,0 +1,11 @@
#!/bin/sh
os=$(cat "${__global:?}/explorer/os")
if [ "$os" != "alpine" ]; then
echo "This type is expected to run on Alpine Linux, not $os. Exiting." >&2
exit 1
fi
for pkg in curl php7 php7-phar less; do
__package $pkg
done

0
type/__wp_cli/singleton Normal file
View file