Scripts to setup shell and install base packages
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 lines
540 B

  1. #!/bin/sh
  2. # To add this repository please do:
  3. if [ "$(whoami)" != "root" ]; then
  4. SUDO=sudo
  5. fi
  6. ${SUDO} apt-get update
  7. ${SUDO} apt-get -y install lsb-release ca-certificates curl
  8. ${SUDO} curl -sSLo /tmp/debsuryorg-archive-keyring.deb https://packages.sury.org/debsuryorg-archive-keyring.deb
  9. ${SUDO} dpkg -i /tmp/debsuryorg-archive-keyring.deb
  10. ${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'
  11. ${SUDO} apt-get update