diff --git a/packages/basics/README.md b/packages/basics/README.md index 387091e..a7cf267 100644 --- a/packages/basics/README.md +++ b/packages/basics/README.md @@ -1,3 +1,9 @@ +## Basics ```sh sh -c "$(curl -fsSL https://raw.githubusercontent.com/hebertcisco/deb-install/master/packages/basics/basics.sh)" -``` \ No newline at end of file +``` + +## Remove apache2 +```sh +sh -c "$(curl -fsSL https://raw.githubusercontent.com/hebertcisco/deb-install/master/packages/basics/remove-apache2.sh)" +``` diff --git a/packages/basics/remove-apache2.sh b/packages/basics/remove-apache2.sh new file mode 100644 index 0000000..41875c6 --- /dev/null +++ b/packages/basics/remove-apache2.sh @@ -0,0 +1,9 @@ +#!/bin/sh + +if [ -x "$(command -v apache2)" ]; then + sudo apt-get remove apache2 -y + sudo apt-get autoremove -y + echo "Apache2 removed." +else + return 1 +fi \ No newline at end of file diff --git a/packages/php/php8.1.sh b/packages/php/php8.1.sh index 0e0fb4b..46dcc61 100644 --- a/packages/php/php8.1.sh +++ b/packages/php/php8.1.sh @@ -4,6 +4,7 @@ if ! command -v php >/dev/null; then echo 'installing php8.1' sudo apt update && sudo apt -y upgrade sudo apt autoremove + sh -c "$(curl -fsSL https://raw.githubusercontent.com/hebertcisco/deb-install/master/packages/basics/remove-apache2.sh)" sudo apt install -y lsb-release gnupg2 ca-certificates apt-transport-https software-properties-common sudo add-apt-repository ppa:ondrej/php sudo apt update diff --git a/packages/php/php8.2.sh b/packages/php/php8.2.sh index 4930c7b..7c5fcf0 100644 --- a/packages/php/php8.2.sh +++ b/packages/php/php8.2.sh @@ -4,6 +4,7 @@ if ! command -v php >/dev/null; then echo 'installing php8.2' sudo apt update && sudo apt -y upgrade sudo apt autoremove + sh -c "$(curl -fsSL https://raw.githubusercontent.com/hebertcisco/deb-install/master/packages/basics/remove-apache2.sh)" sudo apt install -y lsb-release gnupg2 ca-certificates apt-transport-https software-properties-common sudo add-apt-repository ppa:ondrej/php sudo apt update diff --git a/packages/php/php8.3.sh b/packages/php/php8.3.sh index 469199f..6ebfa5a 100644 --- a/packages/php/php8.3.sh +++ b/packages/php/php8.3.sh @@ -4,6 +4,7 @@ if ! command -v php >/dev/null; then echo 'installing php8.3' sudo apt update && sudo apt -y upgrade sudo apt autoremove + sh -c "$(curl -fsSL https://raw.githubusercontent.com/hebertcisco/deb-install/master/packages/basics/remove-apache2.sh)" sudo apt install -y lsb-release gnupg2 ca-certificates apt-transport-https software-properties-common sudo add-apt-repository ppa:ondrej/php sudo apt update