Update install.sh

This commit is contained in:
Bozhidar Slaveykov 2023-11-24 02:23:16 +02:00
parent f4c33a6088
commit fa0cce7354

View file

@ -68,18 +68,18 @@ for DEPENDENCY in "${DEPENDENCIES_LIST[@]}"; do
fi
done
DEPENDENCIES_FOR_REMOVE_LIST=(
"apache2"
)
# Check if the dependencies are installed
for DEPENDENCY in "${DEPENDENCIES_FOR_REMOVE_LIST[@]}"; do
if command_is_installed $DEPENDENCY; then
echo "Dependency $DEPENDENCY is installed."
echo "Removing $DEPENDENCY..."
apt purge -y $DEPENDENCY
apt autoremove -y
fi
done
#DEPENDENCIES_FOR_REMOVE_LIST=(
# "apache2"
#)
## Check if the dependencies are installed
#for DEPENDENCY in "${DEPENDENCIES_FOR_REMOVE_LIST[@]}"; do
# if command_is_installed $DEPENDENCY; then
# echo "Dependency $DEPENDENCY is installed."
# echo "Removing $DEPENDENCY..."
# apt purge -y $DEPENDENCY
# apt autoremove -y
# fi
#done
# sudo ufw allow proto tcp from any to any port 80,443