2021-12-22 13:51:22 +00:00
|
|
|
#!/bin/bash
|
2022-07-04 09:56:45 +00:00
|
|
|
##makedesc: Install apache2 (latest)
|
2023-04-12 14:11:17 +00:00
|
|
|
[ -f `dirname $0`/../helpers ] && source `dirname $0`/../helpers || exit 255
|
2022-07-04 09:56:45 +00:00
|
|
|
|
2023-04-12 14:11:17 +00:00
|
|
|
title
|
2021-12-22 13:51:22 +00:00
|
|
|
|
2022-07-04 14:22:57 +00:00
|
|
|
sudo apt install -y --autoremove apache2 && \
|
2023-04-11 15:43:14 +00:00
|
|
|
sudo systemctl restart apache2
|
|
|
|
|
2023-04-12 14:11:17 +00:00
|
|
|
[ $? = 0 ] && {
|
|
|
|
echo
|
|
|
|
success "apache2 installed!"
|
|
|
|
apache2 -v
|
|
|
|
echo
|
|
|
|
}
|