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/bash | |
set -e | |
if [ "$EUID" -ne 0 ]; then | |
SUDO="sudo" | |
else | |
SUDO="" | |
fi |
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
# Update the package manager cache | |
sudo apt update | |
# Install the required packages (default PHP version for ubuntu 20.04 is 7.4) | |
sudo apt install php-cli unzip | |
# Make sure you're in your home directory | |
cd ~ | |
# Retrieve the installer using curl |