diff --git a/bonus.sh b/bonus.sh index 69cd3cf..2126084 100755 --- a/bonus.sh +++ b/bonus.sh @@ -6,7 +6,7 @@ # By: gbaconni@student.42lausanne.ch +#+ +:+ +#+ # # +#+#+#+#+#+ +#+ # # Created: 2021/11/07 14:23:18 by gbaconni #+# #+# # -# Updated: 2021/11/07 16:47:52 by gbaconni ### lausanne.ch # +# Updated: 2021/11/07 16:50:33 by gbaconni ### lausanne.ch # # # # **************************************************************************** # @@ -14,7 +14,7 @@ PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" ft_mariadb () { - if ! dpkg --get-selections | grep -q 'mariadb-server' + if ! dpkg --get-selections | grep -q '^mariadb-server' then apt-get install -qq -y mariadb-server fi @@ -23,6 +23,10 @@ ft_mariadb () ft_apache () { + if ! dpkg --get-selections | grep -q '^apache' + then + apt-get install -qq -y apache ssl-cert + fi return 0 }