Update install.sh
This commit is contained in:
parent
a28647767b
commit
a0c1dba565
1 changed files with 17 additions and 0 deletions
|
@ -29,4 +29,21 @@ 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 remove -y $DEPENDENCY
|
||||
apt autoremove -y
|
||||
fi
|
||||
done
|
||||
|
||||
# Run Nginx
|
||||
systemctl start nginx
|
||||
systemctl enable nginx
|
||||
|
||||
php -v
|
||||
|
|
Loading…
Reference in a new issue