Skip to content

Instantly share code, notes, and snippets.

@malkafly
Created February 25, 2023 04:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save malkafly/0bb4559d2c3caedbf0928833caae8b9a to your computer and use it in GitHub Desktop.
Save malkafly/0bb4559d2c3caedbf0928833caae8b9a to your computer and use it in GitHub Desktop.
adicionando o repo do PHP na marra
#!/bin/sh
# To add this repository please do:
if [ "$(whoami)" != "root" ]; then
SUDO=sudo
fi
${SUDO} apt-get update
${SUDO} apt-get -y install apt-transport-https lsb-release ca-certificates curl
${SUDO} curl -sSLo /usr/share/keyrings/deb.sury.org-php.gpg https://packages.sury.org/php/apt.gpg
${SUDO} sh -c 'echo "deb [signed-by=/usr/share/keyrings/deb.sury.org-php.gpg] https://packages.sury.org/php/ $(lsb_release -sc) main" > /etc/apt/sources.list.d/php.list'
${SUDO} apt-get update
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment