Skip to content

Commit

Permalink
feat: install mkcert for multiple OS
Browse files Browse the repository at this point in the history
  • Loading branch information
tanhongit committed Dec 7, 2023
1 parent 73eb9ad commit c8c0f3b
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion .setup/options/develop/web/php/tools.sh
Original file line number Diff line number Diff line change
@@ -18,7 +18,20 @@ if ! command -v $COMMAND_NAME &>/dev/null; then
echo "$COMMAND_NAME could not be found. Setting up $COMMAND_NAME."

cd ~ || exit
sudo apt install mkcert -y

# shellcheck disable=SC1091
if [ -f "/etc/os-release" ]; then
. /etc/os-release
OS=$NAME

if [ "$OS" == "Ubuntu" ]; then
sudo apt install mkcert -y
elif [ "$OS" == "Zorin OS" ]; then
sudo wget https://github.com/FiloSottile/mkcert/releases/download/v1.4.3/mkcert-v1.4.3-linux-amd64 -O mkcert
sudo chmod +x mkcert
sudo mv mkcert /usr/local/bin/
fi
fi

mkcert -install
if [ ! -d "/var/www/certs" ]; then

0 comments on commit c8c0f3b

Please sign in to comment.