install php composer

This commit is contained in:
Ray Elliott 2020-09-04 19:43:43 +01:00
parent 9e0fa13fce
commit e5e6cac049
1 changed files with 11 additions and 1 deletions

View File

@ -5,7 +5,7 @@ _home_dir="/home/$user"
ssh -T $ssh << EOSSH ssh -T $ssh << EOSSH
echo "Installing packages .." echo "Installing packages .."
apt-get -y install curl gnupg2 ninja-build gettext libtool libtool-bin autoconf automake cmake g++ pkg-config unzip python-pip python3-pip fzf apt-get -y install curl gnupg2 ninja-build gettext libtool libtool-bin autoconf automake cmake g++ pkg-config unzip python-pip python3-pip fzf vim ctags
echo "Installing lazygit .." echo "Installing lazygit .."
curl -fsSL https://github.com/jesseduffield/lazygit/releases/download/v0.22.1/lazygit_0.22.1_Linux_x86_64.tar.gz --output /tmp/lazygit.tar.gz curl -fsSL https://github.com/jesseduffield/lazygit/releases/download/v0.22.1/lazygit_0.22.1_Linux_x86_64.tar.gz --output /tmp/lazygit.tar.gz
@ -23,6 +23,16 @@ cd /tmp/neovim
make CMAKE_BUILD_TYPE=Release make CMAKE_BUILD_TYPE=Release
make install make install
if command -v php ; then
echo "Installing composer .."
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
php -r "if (hash_file('sha384', 'composer-setup.php') === '8a6138e2a05a8c28539c9f0fb361159823655d7ad2deecb371b04a83966c61223adc522b0189079e3e9e277cd72b8897') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
php composer-setup.php --filename=composer --install-dir=/usr/local/bin
php -r "unlink('composer-setup.php');"
fi
exit
su "$user" su "$user"
echo "Installing nvm ..." echo "Installing nvm ..."