apache2 + helpers

This commit is contained in:
2023-04-12 22:11:17 +08:00
parent 7cc6888cca
commit 8ad20ca7fd
2 changed files with 14 additions and 9 deletions

View File

@@ -1,16 +1,15 @@
#!/bin/bash
##makedesc: Install apache2 (latest)
[ -f `dirname $0`/../helpers ] && source `dirname $0`/../helpers || exit 255
echo
echo "==============================================="
echo "Installing apache2..."
echo "==============================================="
echo
title
sudo apt install -y --autoremove apache2 && \
sudo systemctl restart apache2
echo
echo "Finish!"
apache2 -v
echo
[ $? = 0 ] && {
echo
success "apache2 installed!"
apache2 -v
echo
}