Created
February 25, 2023 04:22
-
-
Save malkafly/0bb4559d2c3caedbf0928833caae8b9a to your computer and use it in GitHub Desktop.
adicionando o repo do PHP na marra
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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